Error: only one instance of babel-polyfill is allowed
See original GitHub issueI 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:
- I cloned the repository.
- ran yarn install
- 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:
- Created 6 years ago
- Reactions:7
- Comments:9 (1 by maintainers)
Top GitHub Comments
+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.I was getting this error and had to remove the
babel-runtime
package from mypackage.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