zrender icon indicating copy to clipboard operation
zrender copied to clipboard

Explicitly specify "type": "module" in package.json

Open AndreyYolkin opened this issue 3 years ago • 4 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

AndreyYolkin avatar Mar 20 '22 14:03 AndreyYolkin

Hey, sorry to hijack this issue but I did not see a way to dm you @AndreyYolkin. I'm trying to use use echarts in my nuxt bridge app as well but running into errors. Do you happen to have run into the same thing or mind sharing the setup you used to get it working?

warflash avatar Aug 19 '22 09:08 warflash

Hey, sorry to hijack this issue but I did not see a way to dm you @AndreyYolkin. I'm trying to use use echarts in my nuxt bridge app as well but running into errors. Do you happen to have run into the same thing or mind sharing the setup you used to get it working?

I try to run today and send details

AndreyYolkin avatar Aug 19 '22 09:08 AndreyYolkin

Thank you, that'd be awesome!

warflash avatar Aug 19 '22 09:08 warflash

Thank you, that'd be awesome!

https://github.com/AndreyYolkin/nuxt-bridge-echarts

AndreyYolkin avatar Aug 19 '22 12:08 AndreyYolkin