Skip to content

JSON re-upload + export to .fig gives invalid .fig fileย #22

@coscotuff

Description

@coscotuff

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:

  1. 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).
  2. Upload the .fig file to the web interface (i.e., on https://www.figma2json.com/).
  3. Export the corresponding JSON file.
  4. Re-Upload the JSON file to the web interface and this time, export as a .fig file.
  5. 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:
image

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).

  1. When uploading the figma file exported in the 3rd step to Figma, no error comes up, as can be seen below:
    image

  2. 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).
    image

  3. 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.
    image

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

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