-
Notifications
You must be signed in to change notification settings - Fork 491
'Set' is undefined in IE 11 document mode 10 #169
Comments
React 16 requires polyfilling Map and Set: https://reactjs.org/docs/javascript-environment-requirements.html This fixes the problem for production builds, but I haven't been able to get it working in development mode. I'm guessing it requires modifying webpack config, but this in turn requires ejecting and I would like to avoid that. There is a discussion in create-react-app repository about including these polyfills by default. |
Yes after add the it work for the production build |
@holysnake91 is this fixed now, if so please close this issue 😄 |
It only work on production build but not dev build |
As mentioned by @paradox22 , it is still under discussion about if and how to include these polyfills, since they are required for the majority of the browsers, thus generating additional bundle size without any benefit. Due to the intended feature parity, I'd say we should not go ahead with a different way here. Until then, you have polyfill your project properly yourself. Until then, including appropriate polyfills before the first import of
|
Getting this error 'Set' is undefined in IE 11 document mode 10.
If change to document mode 11 no issue, but we can't control the user IE settings.
Attached the picture where the code giving the issue.
The text was updated successfully, but these errors were encountered: