-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReferenceError: echarts is not defined #10
Comments
|
我也存在这个问题,换了好多echarts版本 都不行。angular-cli.json里确定是加入了echarts的 死活找不到原因 重新测试发现可能是angular的版本原因,angular-cli新生成的项目都是可以运行的,angular对应版本是2.4.0,但是自己项目已经和官方一致是4.2.2了 再补充一下,可以修改angular-cli@1.1.2的配置来解决问题。修改node_modules/@angular/cli/models/webpack-configs/common.js |
我也有这个问题...想请教一下,我安装完毕之后ngx-echarts这个文件的directive里面没有angular-echarts.directive..ts文件...但是有一个angular-echarts.directive.d.ts...里面export了AngularEchartsDirective,里面的代码和你的angular-echarts.directive.ts的差很多...所以...怎么办... |
@shao37142 安装后的目录ngx-echarts目录里面,你不需要关心directive目录。 |
@xieziyu 主要我是小白...想搞明白这个包到底是个什么原理...弄好了,感谢... |
在node_modules里新增这个 new webpack.ProvidePlugin({ echarts: 'echarts' }) 的话别人如果下代码更改 每次都要在node里添加这个啊。。 有没有其他的方法可以解决呢 |
When I run the page with the chart, it gives me this error:
(I'm importing the script on angular-cli)
Any ideas?
The text was updated successfully, but these errors were encountered: