在vue中引入mui的js文件的时候,报如下的错误:

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的错误

那是因为我们在用webpack打包项目时默认的是严格模式,我们把严格模式去掉就ok了

第一步:npm install babel-plugin-transform-remove-strict-mode

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的错误

第二步:在.bablerc文件中加入"plugins"["transform-remove-strict-mode"]

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的错误

到这里问题就完美解决了

 

相关文章:

  • 2021-11-17
  • 2021-05-15
  • 2022-12-23
  • 2022-12-23
  • 2021-08-25
  • 2022-02-05
  • 2022-03-02
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
相关资源
相似解决方案