-
-
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
Cannot convert object to primitive value with core-js 3.1.3 + webpack #566
Comments
I've narrowed it down to this statement being broken, $defineProperty({}, Symbol.toStringTag, { value: 'test' }) As you can see in the above code, webpack seems to add this to every harmony module |
In which engine? Could you add a reproducible example? |
IE11. If you run my exact example in IE11, it throws an exception |
@jacobp100 you really think that this example is not tested and still no one run |
It seems that Loading it after the file containing |
Thanks @PikachuEXE - we had exactly the same issue with Google Maps, and managed to fix it with your solution 😀 |
This also seems to be an issue with Google's Recaptcha API. Removing it from the project or making it load after your packed bundle fixes IE11. The file in question that I had to move was The specific IE11 error I was getting was:
Kind of annoying... |
@Cobertos Did you find a fix ? |
@firestar300 Yeah, you have to make sure recaptcha loads after any other script that messes with |
Thanks :) |
I'm having the exact same issue as @PikachuEXE. Same stack trace and everything, but I'm not using Google maps or recaptcha on my page. Any other ideas as to why this error might be happening in ie11? |
I reverted to core-js 2.5.7 and all the module.export errors stopped displaying. |
@PikachuEXE what do you mean by file containing core-js symbol polyfil? |
Any file that import |
Env
4.32.2
8.0.6
3.1.3
Not sure what else should be added
Will update this list if more entries are needed
Description
I already applied patch from rails/webpacker#2031 to fix #514
But now I got this error
Below are screenshots to the backtrace
The text was updated successfully, but these errors were encountered: