问题产生:
项目拉取运行后提示如下。
Failed to compile.
./src/views/sagc/component/EchartLine.vuevue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.jsref–12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.jsref–0-0!./node_modules/vue-loader/libvue-loader-options!./src/views/sagc/component/EchartLine.vuevue&type=script&lang=js&) Module not found: Error: Can’t resolve ‘echarts’ in ‘F:hql-jobibp2.fesubapp-webglsrciewssagccomponent’
错误原因:
找不到echarts模块。
解决:
npm install重新安装依赖,注意:安装依赖时一定在当前目录下安装。

本文讲述了在Vue项目中遇到'echarts'模块未找到的问题,通过npminstall在当前目录下重新安装依赖来解决,关键在于确保正确安装。


被折叠的 条评论
为什么被折叠?



