Error in. / node_models/ngx-echarts/fesm5/ngx-echarts.js

clipboard.png
angular project introduces echarts (4.1.0), ngx-echarts (4.0.0), @ types/echarts (4.1.0), and reports an error after starting the project

May.04,2021

I used the combination of angular5 + echarts3 before. If I install ngx-echarts4.0.1, directly, I can use it normally, but I will report to Object. () is.. Donovan's mistake. After consulting the relevant information, it was found that there was a problem with the ngx-echarts version, so it was adjusted to ngx-echarts2.3.0, and then this error was also reported.

after careful consideration and attempt, after introducing 'ngx-echarts'' into the app.module.ts file, it will point to a certain folder by default. If you change the version, the corresponding content will not be found because the default location does not change (because the file paths of different versions are different), so restart the project to solve this problem

I wonder if your solution is the same as mine

Menu