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的错误

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

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

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

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

到这里问题就完美解决了

 

posted @ 2019-07-18 18:49  胡发发儿  阅读(10357)  评论(0编辑  收藏  举报