简体   繁体   中英

React App not loading in IE11 in windows server

I am a novice in React and developed a utility application and it's working fine in local machine.

I tried to deploy build folder in IIS on Windows server but when I am trying to access it in IE, I am getting blank page after some time. Below is the error I can see in the console:

在此处输入图像描述

Debugger is showing this:

在此处输入图像描述

Below are the dependencies in my package.json:

在此处输入图像描述

Regards,

Symbols are a "new" javascript concept that isn't supported in IE11.

You'll need to eject and change your target in your compiler so it transpires this to something IE11 can interpret.

React 18 does not support Internet Explorer. Drop back to React 17 if you need to support that (note that IE is end-of-life though).

https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#dropping-support-for-internet-explorer

Even with React 17, you'll likely need polyfills, such as react-app-polyfill .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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