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