vue中报错: * zrender/lib/contain/line in ./node_modules/[email protected]@echarts/lib/cha

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/[email protected]@echarts/lib/cha
rt/helper/LargeLineDraw.js
* zrender/lib/contain/polygon in ./node_modules/[email protected]@echarts/lib/
component/brush/selector.js, ./node_modules/[email protected]@echarts/lib/coor
d/geo/Region.js
* zrender/lib/contain/quadratic in ./node_modules/[email protected]@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 ,完美解决了这个问题!

原文地址:https://www.cnblogs.com/l-y-q/p/10368988.html

时间: 2024-07-29 16:12:23

vue中报错: * zrender/lib/contain/line in ./node_modules/[email protected]@echarts/lib/cha的相关文章

【EBS】adpatch报错:libgcc_s.so: undefined reference to `[email protected]_2.4'

EBS通过adpatch打补丁报错 /usr/lib/gcc/x86_64-redhat-linux/4.4.7/32/libgcc_s.so: undefined reference to `[email protected]_2.4' collect2: ld returned 1 exit status make: *** [/soft/ebs12/ERPDB/apps/apps_st/appl/ad/12.0.0/bin/adwrknew] Error 1 Done with link 

git报错failed to push some refs to '[email protected]:Markprint/github.git'

 这个不知名小错误用了我两天的空余时间mmp   就是这里报的错 输入 git push origin master -f 解释为: 远程分支上存在本地分支中不存在的提交,往往是多人协作开发过程中遇到的问题,可以先fetch再merge,也就是pull,把远程分支上的提交合并到本地分支之后再push.如果你确定远程分支上那些提交都不需要了,那么直接git push origin master -f,强行让本地分支覆盖远程分支 终于有了,以后还需要具体研究一下 虽然用的github,但是要推广一下

git push 报错:failed to push some refs to '[email protected]:devops/thor.git'

error: failed to push some refs to '[email protected]:devops/thor.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing

Struts2报错异常Method "setUser" failed for object [email protected]

在写类型转换的时候发现报错 异常信息: 1 ognl.MethodFailedException: Method "setUser" failed for object [email protected] [java.lang.NoSuchMethodException: com.mikey.action.ConverterAction.setUser([Ljava.lang.String;)] 2 at ognl.OgnlRuntime.callAppropriateMethod(O

vue中报错Do not use built-in or reserved HTML elements as component id details

原因是定义了一个叫做details的comonent 跟现有的html网页中的标签重合 export default { name: 'details', data () { return { equityBalance: this.item.equityData, depositWithdraw: this.item.depositWithdraw, symbol: 3, //真实的出金记录 withdrawData: {}, //真实的入金记录 depositData: {} }; } }

vue中报错Props with type Object/Array must use a factory function to return the default value

Invalid default value for prop "value": Props with type Object/Array must use a factory function to return the default value.(props default 数组/对象的默认值应当由一个工厂函数返回) 正确书写方式 <script> export default{ props:{ list:{ type: [Object,Array], default:

Rabbitmq 服务启动后停止 | Windows下启动报错Error: unable to connect to node [email&#160;protected]: nodedown

1.erlang版本和rabbitmq版本不匹配 版本匹配: http://www.rabbitmq.com/which-erlang.html 2.找到匹配的版本,卸载当前rabbitmq重新安装. 执行以下操作从计算机中完全卸载RabbitMQ和Erlang: (1)打开Windows控制面板,双击“程序和功能”. (2)在当前安装的程序列表中,右键单击RabbitMQ Server,然后单击“卸载”. (3)在当前安装的程序列表中,右键单击“Erlang OTP”,然后单击“卸载”. (4

【Vue报错】Module build failed: Error: No parser and no file path given, couldn&#39;t infer a p arser.

在创建一个vue项目启动时报错,报错的内容为: error in ./src/App.vue Module build failed: Error: No parser and no file path given, couldn't infer a p arser. at UndefinedParserError.Wrapper (D:\dyyc\bookstore\[email protected] [email protected]\index.js:1948:14) at new Und

webpacke install vue application 报错 Failed at the [email&#160;protected] install script

刚刚在网上下了个开源的项目: https://github.com/ing670/webappkiller 执行npm install 报错:npm ERR! Failed at the [email protected] install script 'node install.js'. 直接在项目根目录执行:npm install phantomjs-prebuilt -save 安装缺少的类库. 再次安装成功!