immer icon indicating copy to clipboard operation
immer copied to clipboard

Missing error 19 explaination

Open kotojo opened this issue 5 years ago • 2 comments

🙋‍♂ Question

I was investigating a production error at work and ran into this error message. [Immer] minified error nr: 19 ES5. Find the full error at: https://bit.ly/3cXEKWf. When I follow that link it takes me to https://github.com/immerjs/immer/blob/master/src/utils/errors.ts, which does not have an error 19 description. It seems that error state was removed from the file a few months ago . Is this no longer a valid error state, and we just need to update our version of immer, or was this oversight on removing that error code?

  • Immer version: 7.0.7

kotojo avatar Apr 13 '21 21:04 kotojo

It is basically the same error as 18, in other words in your case, you need to call enableES5() to support older browsers that don't support proxies.

On Tue, Apr 13, 2021 at 10:25 PM Bruce Kellerman @.***> wrote:

🙋‍♂ Question

I was investigating a production error at work and ran into this error message. [Immer] minified error nr: 19 ES5. Find the full error at: https://bit.ly/3cXEKWf. When I follow that link it takes me to https://github.com/immerjs/immer/blob/master/src/utils/errors.ts, which does not have an error 19 description. It seems that error state was removed from the file a few months ago https://github.com/immerjs/immer/commit/31684f262a9ec16d5aadb82156a78e81b98f65ef#diff-d3b5d70cc2b50e2667c6d9c24da50c9d14582360145b2ba8b171127e787f03d9. Is this no longer a valid error state, and we just need to update your version of immer, or was this oversight on removing that error code?

  • Immer version: 7.0.7

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/immerjs/immer/issues/783, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAN4NBG5TDV22XZVS42PSY3TISZFVANCNFSM424DS2OA .

mweststrate avatar Apr 13 '21 21:04 mweststrate

Thanks for the explanation. Was just a bit hard to figure out cause the file my logs pointed to that I linked has error 17, 18, 20... and then I started questioning if I knew how to count a few times.

kotojo avatar Apr 25 '21 02:04 kotojo