Failed to compile../src/views/sagc/component/EchartLine.vue?vue&type=script&lang=js& (./node_modul

问题产生:

项目拉取运行后提示如下。

Failed to compile.

./src/views/sagc/component/EchartLine.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/sagc/component/EchartLine.vue?vue&type=script&lang=js&) Module not found: Error: Can't resolve 'echarts' in 'F:\hql-job\ibp2.fe\subapp-webgl\src\views\sagc\component'

错误原因:

找不到echarts模块。

解决:

npm install重新安装依赖,注意:安装依赖时一定在当前目录下安装。

上一篇:关于Module build failed (from ./node_modules/mini-css-extract-plugin/dist/loader.js): ModuleBuildErro


下一篇:webpack模块打包工具