Home > other >  React App not loading in IE11 in windows server
React App not loading in IE11 in windows server

Time:09-01

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:

enter image description here

Debugger is showing this:

enter image description here

Below are the dependencies in my package.json:

enter image description here

Regards,

CodePudding user response:

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.

CodePudding user response:

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.

  • Related