I’m getting a similar error when following the markdown example, which imports the same files:
[!] Error: Unexpected token (Note that you need @rollup/plugin-json to import JSON files)
node_modules\markdown-it\node_modules\entities\lib\maps\entities.json (1:10)
1: { "Aacute": "\u00C1"...
Can you explain how you solved this error?
I tried adding @rollup/plugin-json and rollup-plugin-builtins
- yarn added them
- added them to rollup.config.js
pluginsarray
rollup-plugin-builtins seems deprecated, so I also tried rollup-plugin-node-polyfills