-
Notifications
You must be signed in to change notification settings - Fork 198
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
echarts is not defined #59
Comments
这个需要具体看项目的配置 |
@renmengting 请问你有解决这问题吗? |
我今天刚遇到这个问题,解决方案跟楼上的相似。我用的angular-cli。.angular-cli.json文件里加入如下 |
3 tasks
今天也遇到这个问题,最后在main.js 里引入 echarts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
echarts应该是加载了,但是还是弹出提示说 echarts is not defined,能帮忙看下是什么问题吗?
用的是asp.net core + angular +webpack
webpack 里已经加了
new webpack.ProvidePlugin({ ...,echarts: 'echarts' }),
第一行是已经加载的echarts信息
console.log(echarts);
第二行是调用
<div echarts [options]="options" style="height:150px"></div>
显示的错误信息The text was updated successfully, but these errors were encountered: