I have a problem with th…

less than 1 minute read

I have a problem with the default rollup config and JSON files, after installing axios rollup is trying to import axios’s package.json: { id: '/Users/fernando/Code/project/node_modules/axios/package.json' } { id: '\u0000/Users/fernando/Code/project/node_modules/axios/package.json?commonjs-proxy' } Error during bundle: Error: Unexpected token (Note that you need @rollup/plugin-json to import JSON files) Bundle failed.

Responses:

Reason is that axios source code imports its own package.json, maybe we should add rollug-json plugin by default?

Updated: