kankan-web commented on issue #20211:
URL: https://github.com/apache/echarts/issues/20211#issuecomment-2260542393

   > > 引入一下 LabelLayout
   > > ```js
   > > import * as echarts from 'echarts/core'
   > > import { LabelLayout } from 'echarts/features'
   > > 
   > > echarts.use(LabelLayout)
   > > ```
   > 
   > 我尝试了您的方案 并不能解决我的问题; 我自己后来无意间发现是配置的插件 
UglifyJsPlugin跟echarts版本有冲突;我注释UglifyJsPlugin就没问题; 后来找到了替代压缩插件TerserPlugin 
就没问题;推测是因为echarts含有es6 语法;但官网说他们会根据当前项目 选择es5,还是es6; 
所以我现在不知道是什么原因;但使用TerserPlugin确实可以解决问题;
   
   能问问,这是怎么找到的吗?我感觉我也是同样的问题,都不知道从何下手😂


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to