-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE 11 crash related to symbols in combination with core-js/stable and @babel/runtime-corejs3 #736
Comments
At this moment, I haven't access to IE11. What's the error, stack trace? |
The error occurs in |
Are you sure that |
I agree it looks very much like #514. However, I'm pretty sure nothing in The picture below contains the content from As you can see it's not transpiled. However, if I change the webpack rule to transpile everything the bundled content changes; still the same error in IE11 though. |
Could you check the last results of |
@zloirock I'm running core-js 3.6.4 and still getting this error. IE11 is complaining because there is no try...catch around this exception. https://docs.microsoft.com/en-us/scripting/javascript/misc/exception-thrown-and-not-caught?redirectedfrom=MSDN |
@zloirock here's me console logging after inserting a breakpoint. |
I added the try...catch and a console.error and now I'm getting |
I fixed my issue by updating all dependencies. There were a number of babel updates as well as styled-components (styled-components seemed to be the package causing the most grief.) |
This may be related to #705 and #514. However, I haven't managed to get it to work based on the tips in 514.
Anyways, the error seems to be a result of combining
core-js/stable
and@babel/runtime-corejs3
and in my case ImmutableJS (v3.8.2).I use lots of npm packages and some of them are built with
@babel/plugin-transform-runtime
with thecorejs: 3
option. That results in code likeimport _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
.That specific import, in combination with immutablejs v3.8.2 in my case results in symbol crash in IE 11.
Basically what happens which results in IE 11 crashing:
import 'core-js/stable';
at the top of my entry fileimport _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
import Immutable from 'immutable';
I've created a super simple repo where the error can be reproduced.
This results in a crash in IE 11.
import 'core-js/stable';
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
import Immutable from 'immutable';
This does not result in a crash in IE 11.
import 'core-js/stable';
import Immutable from 'immutable';
This doesn't result in a crash either:
import 'core-js/stable';
import Immutable from 'immutable';
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
Since the order of the imports matter, it seems to me that
core-js
andcore-js-pure
somehow conflicts with one another.The text was updated successfully, but these errors were encountered: