-
Notifications
You must be signed in to change notification settings - Fork 710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gulp serve: Failed to load external module babel-core/register #356
Comments
Thanks for a well-composed issue 👍 This error happened because for some reason you don't have babel installed in your project, i.e. in the |
Had the same issue. Managed to fix it installing babel-core with |
I'm getting this error too with latest version of generator - can be fixed as per comment from paulballesty but surely should just be in the package.json so gets installed to begin with no? |
@timdiacon I managed to monkey patch this by adding babel pack into the devDependencies for the package.json that this generator creates, like so:
|
The fix is released, though 😉 |
@silvenon Yes I was trying to simulate this via the fix but this doesn't work on a fresh version of a generated app. |
Ok so I have resolved this by upgrading my node version to iojs-v2.3.4 which would start with a fresh copy of the ~/.npm directory. This may have been an npm caching issue. But I was able to successfully run the generator with a global install of just yo, gulp, bower. Thank you for the assistance though @silvenon. 😃 |
Glad you got it working 👍 Yeah, probably a caching issue. What was the error you were encountering when trying with the latest release? |
So trying this out on another machine where I'm using iojs-2.2.1 and ensuring it's not an npm caching issue:-
Installing iojs-2.3.4 and it works. May be worth mentioning this as a requisite on the README? I can create a pull request if you would prefer to identify this. I don't have any spare time to test this out on previous iojs-2.3.* versions or other official versions but it would be could so set the minimum version required due to breaking changes from multiple dependencies. Thank you for the patches though, for this very useful generator, none the less! 🍺 |
The problem is that gulp is still searching for |
I'm still having this issue, where gulp is searching for
Gulp version : 3.9.0 When I do
Can anyone guide where things are going wrong. |
|
👎 nopes. |
Couple of ideas:
Try them out. The last one should work, but it shouldn't really come to that. |
Did what you advised, but no change in output. :( . Even reinstalled node. |
Whoa… that should've worked 😕 Are you on OS X? Are you up for pairing with tmate? |
Following [this](yeoman/generator-webapp#356) 'babel' seems to have been renamed into 'babel-core'
I'm seeing this on ubuntu too.
To fix I had to install babel, not babel-core.
Weirdly this does work on OSX without any problem. No idea, but it's weird. Notice how once babel is installed it tries for |
Gulp searches for both. First |
I have the same problem, tried that #356 (comment) and nope 👎 I have elementary os (based ubuntu) gulp --version |
@Revod I have posted a new issue on the gulp repo here: gulpjs/gulp#1364 it might be related? |
Installing the |
I solved my problem uninstalling Node and NPM and reinstall using this guide of Team TreeHouse |
This article held the solution for my problems. |
Tasks completed with the error
package.json: "devDependencies": {
"babel": "^6.5.2",
"babel-core": "^6.8.0",
"babel-preset-es2015": "^6.6.0",
"gulp": "^3.9.1",
……
} |
I found that i was using node v6 i moved it back down to v4.4.4 this then fixed the issue but still getting an error with failed to load external module babel-register so i installed that which then took me back to square one which a lot of you posted. i think uninstalled that again and although it hows failed to load external module babel-register.. it works :) I think is you too node down to 4.2.6 (as i have another system on this version) it should work as required with no issues. |
A new version was released where we don't parse gulpfile with Babel anymore (i.e. we renamed |
hello: A new version was released where we don't parse gulpfile with Babel anymore (i.e. we renamed gulpfile.babel.js to gulpfile.js), because Node v4+ support a lot of ES2015 features. So this issue should be gone. — |
@bleedkaga please raise a new issue, this is not related to babel-register. |
Can you tell me how to solve this problem? @silvenon |
@bleedkaga Maybe. If you open a new issue 😁 |
in index.js ` |
I am using ubuntu 14.04. And i am using Runing
And the issue was solved by the steps below:
Hope it will be helped for whom that using |
i found solution |
Adding .babelrc file may help
|
@baermowei @mqliutie @kevin-kang @xiao-ai 你们TM能用英语嘛?丢人丢到外国去了,shame on you!!! |
@mqliutie 觉得好用点赞就行,别TM废话,你以为csdn还是贴吧啊 |
@NeverMore93 满足脏话在这和我说丢人? 我回的是国人,讲中文有问题?和国人还要拽英文?你英语多厉害?嫌丢人你别出来不就好了? |
@Marshevskyy |
Yes, gulp 3.9.0 make this as an warning, not an error, but I still feel like I am doing something wrong. |
Can someone just fix this sh*t? Obviously is not working.. |
@lipis what isn't working? |
@silvenon I think I found the appropriate project to post the issue: gulpjs/gulp-cli#150 sorry for "aggresive" post.. but this issue is circling the web for the last two years.. |
Ah, I didn't realize that this threw an actual error, that's bad… I hope someone will fix it. |
For me this was a gulp v3.9.1 issue npm unistall --save-dev gulp gulp -v Everything now works. |
Yeah, that is a Gulp issue and should be dealt with in their issue tracker. If someone finds an issue with this generator, please open a new issue. P.S. The reason for locking this issue says "too heated" because that was the most appropriate one on the list. I don't think anyone here was out of line, just that the discussion got a bit chaotic and that the issue has been identified. |
Followed the directions in
README.md
and I receive this error when I rungulp serve
:It does, however, serve the boilerplate welcome page successfully.
System/Software Information
I attempted a clean install, and retraced every step for a second time in a new directory and I am still encountering the same error.
I must note that I am new to Babel, so I have no idea whether or not this has any consequence; I apologise in advance if this is benign.
The text was updated successfully, but these errors were encountered: