-
Notifications
You must be signed in to change notification settings - Fork 43
Description
ISSUE:
When I re-upload a JSON file that I previously exported from the application, and then export it as a .fig file, then at the time of uploading the .fig file to Figma, I get an "Internal error during import" error.
REPRODUCING THE ERROR:
- Export a .fig file from Figma, any template with some sort of a text box should do (I have only tried it out with a text box).
- Upload the .fig file to the web interface (i.e., on https://www.figma2json.com/).
- Export the corresponding JSON file.
- Re-Upload the JSON file to the web interface and this time, export as a .fig file.
- Upload the newly exported .fig to Figma.
ERROR:
The error that comes up on uploading this .fig file to Figma is "Internal error during import", as can be seen below:

INVESTIGATING DIFFS:
In order to understand where things may be going wrong, I also exported the corresponding .fig file and JSON file in the 3rd and 4th steps respectively. These are named OLD._ (3rd step) and NEW._ (4th step).
-
When uploading the figma file exported in the 3rd step to Figma, no error comes up, as can be seen below:

-
Next, when passed through a diff checker, both the old and new JSON files have 0 difference (which is expected as there shouldn't be any difference anyway).

-
Finally, I passed the old and new .fig files through a diff checker and found that there are ~30 lines extra in the original .fig file (which was made into a text file first to copy its contents) at the end of the file.

So, how do I resolve this issue? Or what may I be doing wrong?