Cocos creator 3.2.1 failed to import JSON file – #2 by slackmoehrle – Cocos Creator

Hi all, I am getting strange error when importing .json into my script:
I added necessary options to the tsconfig.json file:

then I created an json and trying to import it:

but in editor I see this error:
Failed to load module file:///D:/game/assets/scripts/common/config/jsons/merge_chains.json: SyntaxError: unknown: Missing semicolon (2:7)

Source link

More To Explore

Share on facebook
Share on twitter
Share on linkedin
Share on email