Plasmic generated components importing the same PlasmicIcon component with two different case spellings

What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)

Tried to sync changes from studio into my local project, when I ran a build I got errors around file casing like below:

Type error: File name '/Users/******/dev/sites/anaxi-platform/components/plasmic/anaxi/icons/PlasmicIcon__PlusSquaresvg.tsx' differs from already included file name '/Users/******/dev/sites/anaxi-platform/components/plasmic/anaxi/icons/PlasmicIcon__PlusSquareSvg.tsx' only in casing.

What have you tried so far? (please link relevant docs and other forum posts)

seems to be related to this issue here:

The above component is formatted PlasmicIcon__PlusSquareSvg in the plasmic.lock file.

Relevant links:

Hello @alex_blue1,

Have you already tried running the plasmic fix-imports command?

Hi @icaro_guerra,

Yeah, I ran the fix-imports command a few times but that hasn’t fixed my issues.

Can you try deleting your /Users/******/dev/sites/anaxi-platform/components/plasmic/ directory (the one that only has the automatically generated files that shouldn’t be changed) and sync again? This shouldn’t remove anything sensitive.

I tried this, had to roll back the delete on some files as after running sync it seems they may have been deleted from plasmic at some point.

Also had some TS errors as I basically had to upgrade all the plasmic dependencies or else it wouldn’t fully pull everything down.

I can get the project to a state where it will build locally doing this, but I seem to lose all of the data coming from supabase and everything shows with the placeholder data from plasmic.