为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

拉风的咖菲猫 2019-03-12 17:15:51
在做vue-router的懒加载的时候碰到个问题,先上代码。Chrome Debug看看。详细错误信息如下: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>
查看完整描述

1 回答

?
哔哔one

TA贡献1854条经验 获得超8个赞

日志说的很明显了,在严格模式下禁止使用'caller', 'callee', and 'arguments'。检索下你的代码里是否写了这些东西。


查看完整回答
反对 回复 2019-04-05
  • 1 回答
  • 0 关注
  • 3143 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号