ecomfe / zrender

A lightweight graphic library providing 2d draw for Apache ECharts

Home Page:https://ecomfe.github.io/zrender-doc/public/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

AndreyYolkin opened this issue · 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

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?

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

Thank you, that'd be awesome!