'IE11 polyfills don't work for React app. Why?

In IE11 I get these errors:

enter image description here

But i have react-app-polyfill installed and imported in index.js first line:

enter image description here

enter image description here



Solution 1:[1]

You also need to add ie 11 in package.json like this:?

enter image description here

For more information, you can refer to this answer. I create a new React app according to this then do the steps in the answer I mention above, the React app can work well in IE 11.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yu Zhou