4

I am using the latest version immer(6.0.5) - https://www.npmjs.com/package/immer and it does not seem to work with IE11 . Getting a cryptic error in the console

Is there a work around to get produce from "immer" to work on IE11?

SCRIPT1002: Syntax error File: main.chunk.js, Line: 137, Column: 21 SCRIPT1002: Syntax error File: main.58a24afc978a7a5505bc.hot-update.js, Line: 22, Column: 34 SCRIPT5022: [Immer] minified error nr: 19 ES5.

github.com/immerjs/immer/blob/master/src/utils/errors.ts - Says this error is 19: "plugin not loaded",

muddassir
  • 815
  • 9
  • 16
  • What is the cryptic error? Please update your post. –  May 20 '20 at 07:10
  • Please read [How To Ask](https://stackoverflow.com/help/how-to-ask) – Luuuud May 20 '20 at 07:13
  • HTML1300: Navigation occurred. File: localhost:3000 SCRIPT1002: Syntax error File: 0.chunk.js, Line: 3089, Column: 34 SCRIPT1002: Syntax error File: main.chunk.js, Line: 137, Column: 21 SCRIPT1002: Syntax error File: main.58a24afc978a7a5505bc.hot-update.js, Line: 22, Column: 34 – muddassir May 20 '20 at 07:17
  • 1
    https://github.com/immerjs/immer/blob/master/src/utils/errors.ts - Says this error is 19: "plugin not loaded", – muddassir May 20 '20 at 07:19
  • What have you already tried to fix this error? – Luuuud May 20 '20 at 07:37
  • Immer works with chrome not with IE11 - this is the issue – muddassir May 20 '20 at 07:39

1 Answers1

3

This means you are using a feature you didn't enable first. For example to use Immer on IE 11 ES5 support has to be enabled. See https://immerjs.github.io/immer/docs/installation#pick-your-immer-version for details.

mweststrate
  • 4,890
  • 1
  • 16
  • 26