标签:npm 方法 nts 关于 typeerror babel 出现 string type
报错的原因是使用了mui导入其js文件导致的.
报错信息如下:
Uncaught TypeError: ‘caller‘, ‘callee‘, and ‘arguments‘ properties may not be accessed on strict mode functions or the arguments objects for calls to them:
根据报错大概判断是由于webpack下的严格模式导致的,因为在webpack中都是严格模式的因此我们要借助软件来解决这个错误
解决方法:
1.在npm官网下载:npm install babel-plugin-transform-remove-strict-mode
2.在.bablerc文件中加入"plugins":
到此你就会发现不会出现这个错误了.
标签:npm 方法 nts 关于 typeerror babel 出现 string type
原文地址:https://www.cnblogs.com/learningPHP-students2018/p/10088570.html