Failed to load external module babel-register
See original GitHub issueFresh Node v4.4.3 and npm v3.x install.
> gulp -v
[14:55:49] Failed to load external module babel-register
[14:55:49] Requiring external module babel-core/register
[14:55:49] CLI version 3.9.1
[14:55:49] Local version 3.9.1
This only happens if the local folder has a gulpfile.babel.js
. package.json
has these installed:
"babel-core": "^6.7.7",
"babel-preset-es2015": "^6.6.0",
"babel-preset-stage-0": "^6.5.0",
.babelrc
{
"presets": ["es2015", "stage-0"]
}
I even tried require('babel-core/register');
in gulpfile.babel.js
but no luck.
Not sure how to fix this.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Failed to load external module @babel/register while gulp
I have solved it by downgrading the gulp version from 3.9.1 to 3.9.0. Looks like 3.9.1 is buggy.
Read more >Error: Cannot find module 'babel-core/register' - MongoDB
Hi team, I am getting an 'Error: Cannot find module 'babel-core/register' after running npm install and npm start.
Read more >require external module babel-register" takes long time to ...
Coding example for the question "require external module babel-register" takes long time to execute-babel.js.
Read more >@babel/register - npm
Start using @babel/register in your project by running `npm i ... There are 1892 other projects in the npm registry using @babel/register.
Read more >babel/register - Babel.js
@babel/register uses Node's require() hook system to compile files on the fly when they are loaded. While this is quite helpful overall, it...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
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
Hmm. So I did
npm i -S babel-register
in order to get rid of theFailed...
warning. Thanks for pointing in the right direction.Not an issue, as it states on the next line down, it required
babel-core/register
. Babel now suggests you use a module calledbabel-register
so we try that first with the fallback. Please read your entire log before creating an issue.