parseContent a local json file dosen't work

Hello :smiley:,

I tried recently to make a GUI using the GUI Editor, it’s a huge time saver, thanks to that !

When I try in the playground to import the GUI using parseFromSnippetAsync, it works well. But I want to use the parseContent method with a local JSON file and it raises the following error :

caught (in promise) TypeError: Cannot read properties of undefined (reading ‘className’)

I’m using both Chrome and Firefox.

Thanks !

Have you tried using parseFromURLAsync? That should work for the GUI that you saved to JSON.
For example like below should work if you have the json file hosted in your root directory. :slight_smile:

1 Like

Thanks a lot, it works ! :smile:

1 Like