xieziyu / ngx-echarts

An angular (ver >= 2.x) directive for ECharts (ver >= 3.x)
https://xieziyu.github.io/ngx-echarts/
MIT License
1.1k stars 193 forks source link

Cannot find module 'echarts' #146

Open yin-xie opened 5 years ago

yin-xie commented 5 years ago

image image

xieziyu commented 5 years ago

@Yin-Xie Please try to remove the echarts paths in tsconfig.json and add it back into angular.json:

"architect": {
  "build": {
    "options": {
      "scripts": [
+       "node_modules/echarts/dist/echarts.min.js"
      ]
    }
  }
}

Please let me know if this is working for your case.

EfkanKnz commented 5 years ago

Try to reinstall and make sure to run this 3 commands: npm install echarts -S npm install ngx-echarts -S npm install @types/echarts -D