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

到这里问题就完美解决了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM