You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/12/14 10:51:19 UTC

[GitHub] [incubator-echarts] codingbees commented on issue #7000: "export 'default' (imported as 'ECharts') was not found in 'echarts/lib/echarts.js'

codingbees commented on issue #7000:
URL: https://github.com/apache/incubator-echarts/issues/7000#issuecomment-744356874


   > 临时解决方案:
   > 
   > 1. 引入echarts的地方改为
   > 
   > ```
   > import * as echarts from 'echarts'
   > ```
   > 
   > 1. webpack的DefinePlugin里加入如下字段
   > 
   > ```
   > // 此处根据情况自行修改,结果为boolean就行,true的情况下会多一些日志信息
   > '__DEV__': process.env.node_env === 'dev' 
   > ```
   > 
   > 或者
   > `npm un echarts && npm i -E echarts@3.7.2 zrender@3.6.3`
   
   感谢,亲测有效


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org