【发布时间】:2019-08-22 14:56:53
【问题描述】:
在 IE 11 上浏览我的应用程序时出现 react 错误。具体问题是 React minified error #31:
对象作为 React 子对象无效(找到:带键的对象 {$$typeof, type, key, ref, props, _owner})。
这可能与 babel 在 IE 11 上没有正确转换我们的 indexjs 有关。
【问题讨论】:
-
babel 不会在浏览器上转译代码。它只在您的机器上执行一次,并且在所有浏览器中加载相同的代码。
-
面临同样的问题,这对你有用吗?
标签: javascript reactjs internet-explorer-11