如何修复IE边缘严格模式下的变量未定义?

时间:2017-05-05 22:23:41

标签: windows reactjs internet-explorer babeljs

我的应用程序内置于reactjs(v15.3.2)/ webpack(1.13.2)/babel(6.22.1)。在最新版本的Chrome中我没有问题,但在IE边缘我得到了:

Variable undefined in strict mode 

同样在检查devtools时,我可以看到此错误:

TypeError: Accessing the 'caller' property of a function or arguments object is not allowed in strict mode
  at myfunc (eval code:185:29)
  at proxiedMethod (eval code:44:9)
  at render (eval code:426:21)
  at proxiedMethod (eval code:44:9)
  at Anonymous function (eval code:796:9)
  at measureLifeCyclePerf (eval code:75:5)
  at ReactCompositeComponent._renderValidatedComponentWithoutOwnerOrContext(eval code:795:7)
  at ReactCompositeComponent._renderValidatedComponent (eval code:822:9)
  at ReactCompositeComponent._updateRenderedComponent (eval code:746:5)
  at ReactCompositeComponent._performComponentUpdate (eval code:724:5)

如何修复此问题或如何关闭strictmode(仅限IE)?

0 个答案:

没有答案