-
Notifications
You must be signed in to change notification settings - Fork 178
Only one instance of babel-polyfill is allowed #121
Comments
We have the same issue and it's quite difficult to troubleshoot. @AlanFoster have you found anything? |
I had the same issue and am still having it when I try to enable PS: I'm building .ts/.tsx projects though, not .jsx In my case I have a node_module called |
As I can see, this issue appears when two different libraries require two different versions of I can offer you one hacky and ugly solution, but I believe it will work:
This will work beginning with I'll think about how to make it better. |
Hi @s-panferov Thanks for looking into it. I just tried out the new version
|
I just patched my dist.babel/index.js files (in both my modules) manually with the following code:
This works around the issue for me, not sure if it's a good idea but so far it seems to work just fine. |
@drywolf your solution is good, but another library may be included afterwards and throw, because |
Hey! I am making a multi-module structure, and both module needs to have I am experiencing the same issue, what do you recommend? |
Require guard added in v0.18.0, please try. |
works for me! Thanks! |
Thanks for the fix 👍 |
Naively attempting to switch out
babel-loader
withawesome-typescript-loader
within webpack throws the following babel-polyfill errorWith the following webpack snippet
The text was updated successfully, but these errors were encountered: