Issue with Immer polyfills after upgrading to version 4.0.1
See original GitHub issueFirst off: 👏 for the good work on the new release! I think I just had to change one line (in a test) after the upgrade for everything to be working 👏
However, I’ve got a tiny issues with supporting older browser. I’ve done as explained here, to enableES5() for Immer - but it does not seem to be enough, as I still get an error (IE11):

The issue referred to, is 20: "Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available".
Am I missing something, or is this an issue “upstream”?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
react-dev-utils uses a vulnerable version of immer as ... - GitHub
We are still getting this issue ever after upgrading to 11.0.2 in our project. Immer dependency is still at 7.0.9. Request the author...
Read more >reactjs - "Critical Prototype Pollution in immer" Patched >=9.0.6
My main issue was my significant gap in knowledge on how package versions work and are supposed to be upgraded. It was very...
Read more >react-scripts | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >Create React App: CHANGELOG-4.x.md | Fossies
We've upgraded to ESLint 7 and added many new rules including some for Jest and React Testing Library as well as the import/no-anonymous-default-export...
Read more >invalid options object. dev server has been initialized - You.com
But then when I did the same I came across a problem, when I tried to do npm ... is using webpack-dev-server version...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I’ve added a little PR for testing
1.above: #575(I’m unable to add any reviewers though)
Okay, it is working now. I just had to add
immeras an explicit dependency to the “app” as well.Our polyfills are loaded via a “shared” package (which had immer as a dependency). However, this did not work, unless Immer is installed for the app as well 🤷♀️
I’m thinking of 2 ways to potentially prevent further issues:
import "easy-peasy/polyfill"(By doing this, I don’t think Immer is required as an explicit dependency)I’m hoping that
1.resolves this, so theimmerdependency can be handled byeasy-peasy.Whats your thoughts?