Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when renaming file that has already been transformed #3

Open
alex3683 opened this issue Apr 19, 2024 · 0 comments
Open

Error when renaming file that has already been transformed #3

alex3683 opened this issue Apr 19, 2024 · 0 comments

Comments

@alex3683
Copy link

If I have a vite dev server running and rename a source file, I get an error that the new file cannot be resolved. I assume that this somehow happens due to the internal cache. This is the error I got after renaming TimellinePositioningConstants.ts to TimelinePositioningConstants.ts (removing a superfluous l):

[vite] Pre-transform error: Failed to resolve import "./TimelinePositioningConstants" from "../../SmallTimeSlots.tsx". Does the file exist?

I assume this can easily be reproduced in your dev environment. If not, just let me know and I'll try to create a minimal reproducible example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant