question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: only one instance of babel-polyfill is allowed

See original GitHub issue

I just took react-starter-kit to try it out. I did not modify anything in the repository files. I do not yet have good knowledge in node.js and webpack and will provide any additional information needed.

Actions untill error:

  1. I cloned the repository.
  2. ran yarn install
  3. ran yarn start

And then I get this error:

Error: only one instance of babel-polyfill is allowed at Object.<anonymous> (D:\development\some\node_modules\babel-polyfill\lib\index.js:10:9) at Module._compile (module.js:571:32) at Module._extensions..js (module.js:580:10) at Object.require.extensions.(anonymous function) [as .js] (D:\DEVELOPMENT\some\node_modules\babel-register\lib\node.js: 152:7) at Module.load (module.js:488:32) at tryModuleLoad (module.js:447:12) at Function.Module._load (module.js:439:3) at Module.require (module.js:498:17) at require (internal/module.js:20:19) at Object.6 (D:\development\some\external "babel-polyfill":1:1) error Command failed with exit code 1.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:7
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
mort3zacommented, Oct 16, 2017

+1

System: Host: *** Kernel: 3.19.0-32-generic x86_64 (64 bit) Desktop: MATE 1.12.0 Distro: Linux Mint 17.3 Rosa

@VimCommando There is no babel-runtime in package.json for me.

2reactions
VimCommandocommented, Sep 26, 2017

I was getting this error and had to remove the babel-runtime package from my package.json dependencies.

The error message is less than helpful, but both packages effectively do the same thing in different ways and cannot be used together.

Here is a short article about it: Babel-polyfill and Babel-runtime Easily Explained

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Only one instance of babel-polyfill is allowed" error
Only one instance of babel-polyfill is allowed usually appears if the order of files being wrapped isn't correct when making use of ......
Read more >
error Error: only one instance of babel-polyfill is allowed #401
I had a similar problem using webpacker. I was loading two javascript apps on the same page using the javascript_pack_tag . Each one...
Read more >
only one instance of babel-polyfill is allowed - WordPress.org
Hello, just installed WP Paint. When I try to edit a image the WP Paint window loads but hangs at “Loading …” Looking...
Read more >
only one instance of babel-polyfill is allowed after chunking
Uncaught Error : only one instance of babel-polyfill is allowed after chunking. I am currently using react-loadable to create chunks by page.
Read more >
Error: only one instance of babel-polyfill is allowed
Error : only one instance of babel-polyfill is allowed ... After adding genomelink node module to my app and I have this error....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found