简体   繁体   English

React 应用程序在使用 react-app-polyfill 后不适用于 IE 7 和 8,但适用于 IE 9 及更高版本

[英]React app is not working on IE 7 and 8 after using react-app-polyfill but working for IE 9 and above

I have react application trying to run the app in IE by default the version of IE is 7 where it is not working however it is working IE 9 and above by followed the steps fron the question below我有反应应用程序试图在默认情况下在 IE 中运行该应用程序 IE 的版本是 7,但它无法正常工作,但是它可以在 IE 9 及更高版本中运行,然后按照以下问题的步骤进行操作

https://stackoverflow.com/questions/43756211/best-way-to-polyfill-es6-features-in-react-app-that-uses-create-react-app

but the app is not wokring in IE7 and IE9但该应用程序在 IE7 和 IE9 中无法运行

Tried to do following in the src/index.js尝试在 src/index.js 中执行以下操作

import 'react-app-polyfill/ie7';
import 'react-app-polyfill/ie8';

which says module not found其中说找不到模块

Please say is there a way to show the application in IE7 and IE9请说有没有办法在 IE7 和 IE9 中显示应用程序

It looks like ReactJS can only work with the IE 9, IE 10 and IE 11 versions.看起来 ReactJS 只能与 IE 9、IE 10 和 IE 11 版本一起使用。 To support the IE 9, IE 10 and IE 11 you need to add polyfills.要支持 IE 9、IE 10 和 IE 11,您需要添加 polyfill。 IE versions older then IE 9 are not supported.不支持早于 IE 9 的 IE 版本。

So it looks like you cannot run the ReactJS app on the IE 7 or IE 8 browser.所以看起来你不能在 IE 7 或 IE 8 浏览器上运行 ReactJS 应用程序。 The IE 7 and IE 8 are too old versions and out of support scope of the Microsoft. IE 7 和 IE 8 版本太旧,超出了 Microsoft 的支持范围。 I suggest you to use the latest Microsoft browser to avoid such kind of issues.我建议您使用最新的 Microsoft 浏览器来避免此类问题。 If you are not able to move to the latest Microsoft browser then at least try to use the IE 11 browser.如果您无法移动到最新的 Microsoft 浏览器,那么至少尝试使用 IE 11 浏览器。

在此处输入图片说明

References:参考:

  1. Supported Browsers 支持的浏览器

  2. react-app-polyfill react-app-polyfill

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM