You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1、如果部署example项目,项目启动后找到echarts-examples\public\js\example-bundle.js。
2、如果是部署websiteI项目,那么在example项目运行npm run localsite后找到echarts-website\examples\js\example-bundle.js
删除图中选中的部分
Activity
CYBYOB commentedon Oct 12, 2023
复现步骤:
环境
node v16.0.0

yarn 1.22.19
npm 7.10.0
其他现象
点击图标下面的下载按钮,下载出来的html文件能正常显示图表

songlai commentedon Oct 27, 2023
遇到了相同的错误。

还有高版本的 webpack 无法生成 example-bundle 文件,改了 package.json 中的版本号,才能运行的。
1096015776 commentedon Jan 19, 2024
我参照readme的执行了compile,跑起来也是这样的报错,我们需要做什么呢
plainheart commentedon Feb 5, 2024
蛮神奇的,我一直在更新代码,似乎还没遇见过这个错误,大家可以再试试最新代码看看。后续我也找个干净的环境安装运行看看。
duanxingyu commentedon Feb 21, 2024
我也是同样的问题!报这个错误
Uncaught SyntaxError: Unexpected token 'function' (at VM307 about:srcdoc:169:1)duanxingyu commentedon Feb 22, 2024
试着回退到这次提交就没问题了
6110ae007a014a15c7dbb6c7e50feb9ce7c87d16Yutong9801 commentedon May 23, 2025
1、如果部署example项目,项目启动后找到echarts-examples\public\js\example-bundle.js。
2、如果是部署websiteI项目,那么在example项目运行npm run localsite后找到echarts-website\examples\js\example-bundle.js
删除图中选中的部分
Ice450028456 commentedon Aug 1, 2025