Version
5.3.1
Link to Minimal Reproduction
No response
Steps to Reproduce
Create app with nuxt bridge
Build that app using nuxi build
preview this app using nuxi preview
Current Behavior
Node throws error while trying import package as cjs module
Expected Behavior
Node import package as esm module
Environment
- OS: Windows 11
- Browser: Chrome 97
- Framework: Nuxt 2 Bridge
Any additional comments?
After building the application with nuxt bridge and running the application, Node tryes to import echarts and zrender as CJS modules, but there are ESM, as I can see. After I specified "type": "module" in both packages, the problem has been solved.
Please specify module type in package.json
Version
5.3.1
Link to Minimal Reproduction
No response
Steps to Reproduce
Create app with nuxt bridge
Build that app using nuxi build
preview this app using nuxi preview
Current Behavior
Node throws error while trying import package as cjs module
Expected Behavior
Node import package as esm module
Environment
Any additional comments?
After building the application with nuxt bridge and running the application, Node tryes to import echarts and zrender as CJS modules, but there are ESM, as I can see. After I specified "type": "module" in both packages, the problem has been solved.
Please specify module type in package.json