【发布时间】:2021-01-11 16:59:25
【问题描述】:
CRA 在其他所有浏览器上都能正常工作,但在 IE 上显示空白屏幕。我试过安装 react-app-polyfill 2.0 和 1.0.6,把 导入“react-app-polyfill/ie11” 在 src/index.js 文件的顶部导入“react-app-polyfill/stable”。以及将“ie 11”放入 dev 和 prod env 的 browserList 中。我还删除了 node_modules 中的 .cache 文件,但仍然弹出相同的错误。这是我的代码:
package.json file dependencies
paackage.json file browserList
以下是我收到的错误消息:
【问题讨论】:
标签: javascript reactjs internet-explorer browser error-handling