基於vue專案的元件中匯入mui框架初始化滑動等效果時需移除嚴格模式的問題
阿新 • • 發佈:2018-11-04
基於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": }