基於vue項目的組件中導入mui框架初始化滑動等效果時需移除嚴格模式的問題


基於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

可使用 babel-plugin -transform-remove-strict-mode 移除嚴格模式

可先進行$ npm install babel-plugin-transform-remove-strict-mode安裝此插件

再.babelrc文件中添加以下內容即可

{
  "plugins"["transform-remove-strict-mode"]
}


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM