babel-polyfill messed with Object in IE11

1k views Asked by At

I have a 1-year-old React app with Server Render that had been in production for a while,

However, it was detected a couple of days before that somehow, the app stop to work with IE11. This is really weird because we have been tested on IE11 many times and it worked before. We even try to roll back the project (using tagged docker image) and this error still appears.

The root cause appears to be in babel-polyfill that somehow change the way Object is created in IE11.

The created object will have jscomp_symbol_Symbol.toStringTag1" Array Iterator"

Here's what I found on the console:

enter image description here

try this input console.log({}) if you have IE11 it will output differently.

This somehow causing my web app to fail since every object will fail lodash _.isPlainObject which is the condition inside Redux.

0

There are 0 answers