Skip to content

Error when renaming file that has already been transformed #3

@alex3683

Description

@alex3683

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions