标签:mod npm r.js image component pat ado 结果 adr
1、报错背景:之前一切正常,然后项目需要上传到svn上,我把写好的项目换了个位置,上传、运行,结果竟然报了 361个错!!! 项目中使用了echarts,报错信息如下:
ERROR Failed to compile with 361 errors 11:34:57
These dependencies were not found:
* zrender/lib/contain/line in ./node_modules/_echarts@4.2.0-rc.2@echarts/lib/cha
rt/helper/LargeLineDraw.js
* zrender/lib/contain/polygon in ./node_modules/_echarts@4.2.0-rc.2@echarts/lib/
component/brush/selector.js, ./node_modules/_echarts@4.2.0-rc.2@echarts/lib/coor
d/geo/Region.js
* zrender/lib/contain/quadratic in ./node_modules/_echarts@4.2.0-rc.2@echarts/li
b/chart/helper/LargeLineDraw.js ....
报错图片(一屏都截不完):
报错提示,缺少依赖,
To install them, you can run: npm install --save zrender/lib/contain/line zrende
r/lib/contain/polygon zrender/lib/contain/quadratic zrender/lib/contain/text zre
nder/lib/container/Group zrender/lib/core/BoundingRect zrender/lib/core/bbox zre
nder/lib/core/curve zrender/lib/core/env zrender/lib/core/event zrender/lib/core
/matrix zrender/lib/core/timsort zrender/lib/core/util zrender/lib/core/vector z
render/lib/graphic/CompoundPath zrender/lib/graphic/Gradient zrender/lib/graphic
/Image zrender/lib/graphic/IncrementalDisplayable zrender/lib/graphic/LinearGrad
ient zrender/lib/graphic/Path zrender/lib/graphic/RadialGradient zrender/lib/gra
phic/Text zrender/lib/graphic/helper/fixClipWithShadow zrender/lib/graphic/shape
/Arc zrender/lib/graphic/shape/BezierCurve zrender/lib/graphic/shape/Circle zren
der/lib/graphic/shape/Line zrender/lib/graphic/shape/Polygon zrender/lib/graphic
/shape/Polyline zrender/lib/graphic/shape/Rect zrender/lib/graphic/shape/Ring zr
ender/lib/graphic/shape/Sector zrender/lib/mixin/Eventful zrender/lib/mixin/Tran
sformable zrender/lib/svg/svg zrender/lib/tool/color zrender/lib/tool/parseSVG z
render/lib/tool/path zrender/lib/vml/vml zrender/lib/zrender
2、解决办法:
因为项目中,用到了echarts,即使我重新 安装 npm install echarts --save 依然解决不了。
最后,我把整个 node_modules删除了, 重新 cnpm install ,然后npm run dev ,完美解决了这个问题!
vue中报错: * zrender/lib/contain/line in ./node_modules/_echarts@4.2.0-rc.2@echarts/lib/cha
标签:mod npm r.js image component pat ado 结果 adr
原文地址:https://www.cnblogs.com/l-y-q/p/10368988.html