You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with config.sample.js exactly the same as in README
Actual Result
/Users/user/chartcuterie/config.sample.js:1
import world from 'echarts/map/json/world.json';
^^^^^^
SyntaxError: Cannot use import statement outside a module
at internalCompileFunction (node:internal/vm:73:18)
at wrapSafe (node:internal/modules/cjs/loader:1153:20)
at Module._compile (node:internal/modules/cjs/loader:1205:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
at require (node:internal/modules/helpers:130:18)
at ConfigService.<anonymous> (/Users/nami/workspace/trackhn/chartcuterie/lib/config.js:113:24)
Investigation
I tried to add "type": "module" in package.json and got another error
The text was updated successfully, but these errors were encountered:
Environment
390925f8909d00b169fad81c4f0a3146e695d116
Steps to Reproduce
npm run build
node lib/index.js --config=config.sample.js render
with
config.sample.js
exactly the same as in READMEActual Result
Investigation
I tried to add
"type": "module"
inpackage.json
and got another errorThe text was updated successfully, but these errors were encountered: