Duplicate babel-polyfill error
See original GitHub issueI use babel-polyfill in my app and this seems to cause the following error:
only one instance of babel-polyfill is allowed
If I remove my require(babel-polyfill) then I can get react-simple-img working, but other parts of my app break and I haven’t figured out why. Is it possible to remove this dependency from react-simple-img?
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Manage multiple babel-polyfill imports instead of throwing an ...
When loading the polyfill, check if global._babelPolyfill is set. If it exists and it has a different major version than the current one,...
Read more >babel/polyfill (Babel 7 beta) causes a SyntaxError [duplicate]
Try changing the entry point entry key to : entry: ['babel-polyfill', './src/index.js'] . According to the docs the polyfill must be at the ......
Read more >babel/plugin-transform-runtime
A plugin that enables the re-use of Babel's injected helper code to save on codesize.
Read more >Options - Babel.js
The same EntryTarget may be used multiple times unless each one is given a different name, and doing so will result in a...
Read more >babel/register - Babel.js
Polyfill not included. You must include the polyfill separately when using features that require it, like generators. Ignores node_modules by default.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the checking, i guess i have to do the following
will let you know once published
Hey Dustin,
i will update it to be Peer Dependencies, this should fix your issue.
cheers bill