webpack打包的vue工程出现arguments callee Exception

在做vue-router的懒加载的时候碰到个问题,先上代码。

https://img2.mukewang.com/5ca6f8730001ee6906740315.jpg

Chrome Debug看看。

https://img1.mukewang.com/5ca6f8750001546c08000373.jpg

详细错误信息如下:
Exception: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Function.remoteFunction (<anonymous>:2:14) at eval (webpack-internal:///./src/utils/asyncRouter.js:18:14) at Array.forEach (<anonymous>) at generaMenu (webpack-internal:///./src/utils/asyncRouter.js:13:8) at __webpack_exports__.a (webpack-internal:///./src/utils/asyncRouter.js:10:3) at eval (webpack-internal:///./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/components/Login.vue:39:84) at <anonymous>


拉风的咖菲猫
浏览 3042回答 1
1回答

哔哔one

日志说的很明显了,在严格模式下禁止使用'caller', 'callee', and 'arguments'。检索下你的代码里是否写了这些东西。
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

JavaScript