IE11 and Immer in a NextJS Environment #1302
-
| Hey all! I have an issue with using RTK in our NextJS project. I get this error when I launch the application in IE11: 
 From the above error, and this post (#476) and the Immer documentation, I realise the method  These changes don't appear to affect running in any other browser, but they do not help me get past the  My knowledge of Webpack and NextJS is not expert level, but my hypothesis are: 
 I have at least debugged the possibility there are two Immers in the project using  I honestly don't know the best way of debugging this, and suggestions would be massively appreciated. PS: I know. IE11. Unfortunately I absolutely do not have the option of not supporting this browser, but we also really want to use RTK (and by extension, RTKQuery) as it's enabled us to massively simplify our codebase! 🙏🏻 | 
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
| Hmm. We do automatically call  Previously, we did it directly in the  redux-toolkit/packages/toolkit/src/createReducer.ts Lines 200 to 204 in 7985091 Are you actually using  My only immediate suggestion for debugging would be to slap some  | 
Beta Was this translation helpful? Give feedback.
Hmm. We do automatically call
enableES5already, but we did change where that call is made in RTK 1.6.Previously, we did it directly in the
index.tsentry point file. In 1.6, we changed it to be inside ofcreateReducer:redux-toolkit/packages/toolkit/src/createReducer.ts
Lines 200 to 204 in 7985091
Are you actually using
createSliceorcreateApianywhere in the cod…