码迷,mamicode.com
首页 > 数据库 > 详细

vue中引入mui报Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them的错误

时间:2019-07-18 19:32:12      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:sse   mui   erro   image   ini   info   com   orm   end   

在vue中引入mui的js文件的时候,报如下的错误:

技术图片

那是因为我们在用webpack打包项目时默认的是严格模式,我们把严格模式去掉就ok了

第一步:npm install babel-plugin-transform-remove-strict-mode

技术图片

第二步:在.bablerc文件中加入"plugins"["transform-remove-strict-mode"]

技术图片

到这里问题就完美解决了

 

vue中引入mui报Uncaught TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them的错误

标签:sse   mui   erro   image   ini   info   com   orm   end   

原文地址:https://www.cnblogs.com/h-flower/p/11209300.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!