Windows 如何修复IE edge中严格模式下未定义的变量?

Windows 如何修复IE edge中严格模式下未定义的变量?,windows,reactjs,internet-explorer,babeljs,Windows,Reactjs,Internet Explorer,Babeljs,我的应用程序内置于reactjs(v15.3.2)/webpack(1.13.2)/babel(6.22.1)。在最新版本的chrome中,我没有问题,但在IE edge中,我得到: Variable undefined in strict mode 此外,在检查devtools时,我可以看到以下错误: TypeError: Accessing the 'caller' property of a function or arguments object is not allowed in

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

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)?

您的代码是否使用了
。调用者
?最简单的修复方法是停止使用它。根据堆栈跟踪,错误来自名为
myfunc
的函数。它是通过React调用的,但React没有问题。请稍候,我将查找代码解决方案是什么>,因此我刚刚遇到了一个类似的问题,尽管很愚蠢,但我在声明变量时忘记了放置
var
(或
let
)。问题是,所有其他浏览器都可以使用它。。。