【发布时间】:2020-02-07 01:10:22
【问题描述】:
我有一个完整构建的 React 应用程序,我想在 IE 11 上部署它,但没有成功,只有一个白页。
为了测试,我使用 npx create-react-app 创建了一个虚拟应用程序,并尝试在 IE 11/Edge 上启动。在 index.js 的第 1 行和第 2 行安装“react-app-polyfill”并导入“react-app-polyfill/ie11”和“react-app-polyfill/stable”,我还包括“last 1 ie version” package.json 文件中的 browserlist.development。
每个在线资源都指向需要 polyfill 才能在 IE 11 上查看的反应,但我没有取得任何成功。任何指针都非常感谢!
【问题讨论】:
-
你的控制台有错误吗?
-
控制台没有错误
标签: reactjs internet-explorer internet-explorer-11 polyfills ie11-developer-tools