Problem with file names after sync: Somethingpng.png Somthingsvg.svg

Yesterday I did a plasmic sync (Codgen)

and I was getting the error that 2 files were not found

I then saw that those files were ending with svg.svg
and png.png

so I removed the svg/png in front of the dot.
That got rid of the error yesterday.

now a teammate showed me this screenshot

What is going on here?
Never had that problem before.

Hello @johannes_horteis,

Can you try syncing again?

@johannes_horteis, can you share the plasmic.json file when you encountered this error?

Hey @johannes_horteis,

Can you run plasmic fix-imports to fix the imports?

plasmic fix-imports is not the solution

The only thing that works so far is to rename

1 Like

These are the affected files
PlasmicIcon__ImageAddSvg2
PlasmicIcon__VectorEditSquareSvg
PlasmicIcon__CommandIconFrameSvg
userAvatarsDummyPng
PlasmicIcon__MapMapLogoGreen3DSvg
sheet3WhiteSvg
sheet2WhiteSvg
sheet1WhiteSvg

basically the file in the codebase is PlasmicIcon__ImageAddsvg2 but the app is looking for PlasmicIcon__ImageAddSvg2
the “s” in svg is lowercase instead of uppercase

Does this files in your plasmic.json have it upper cased or lower cased?

I don’t know.

We had this issue over and over again for every team memebr.
Until I went into plasmic studio and did the following renamings:

Video: Renamings of problematic svg and png assets | Loom

another thing that is interesting

there is one file here

but there are two files in the codebase


and PlasmicDesktopEntryPage.module.css is referring to the incorrect one


in plasmic json it is referring to the wrong file:

so I changed that and the module files.

but then I did a plasmic sync!

and…

it wants to create the wrongly named file again.
(btw - selecting NO - always stops the syncing process. it has always been that way!)

but this file does not exist in plasmic studio:

but these are correct in the plasmic.json

However…

there is this in the plasmic.json

So what I did is remove these objects

and then plasmic sync again

and it keep complainaing about other files:

After removing a bit more from plasmic.json and then syncing again
I think I’m fine. for now.

Thanks for all the information! Let us know ASAP if this happens again please as this shouldn’t be happening.

Thanks for the Loom! I ran into the same problem and renaming the faulty icons also fixed it for me.