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"]

到这里问题就完美解决了

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