I am trying to load my web application on IE11 with the following browserslist
configuration in package.json
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
">0.1%",
"not dead",
"not op_mini all"
]
}
and with the following statements at the beginning of src/index.tsx
import 'react-app-polyfill/ie11';
import 'react-app-polyfill/stable';
But I get an error saying SCRIPT438: Object doesn't support property or method 'entries'
. To overcome this I read the SO post at Object doesn't support property or method 'entries' but no good.
I tried installing yarn add core-js
but when I try to do import 'core-js/es7/object';
the build fails saying the module does not exist. What should I do here? What is it that I am missing?