-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
Couldn't find preset "es2015" relative to directory #93
Comments
Have you installed these presets via npm?
|
@rbatllet yes, I have installed . |
Hello @littledu, you may want to just resolve the preset location yourself in your build script, example:
In any case, this isn't actually an issue with gulp-babel, which is just a wrapper. The best places for you to get further help with this are listed in Babel's README. |
The correct example would be to use the npm package names, e.g.:
|
Thanks @panuhorsmalahti , I will try it next time. |
@panuhorsmalahti
I did receive the following error:
Do you have any idea how to solve this issue? Thanks in advance |
Try this:
|
@rbatllet Your suggestion was my first implementation with the same error output! This was the reason why I have found this thread. I have in mind that with gulp version < 4.0.0 this wasn't a problem at all. But I'm not pretty sure. |
For some reason in my case, I got the same error.
The funny thing. Error disappeared when I created .babelrc file with simple config. ✅ |
Maybe Also need to fix the relative path with |
This problem has not been resolved.
|
@yanickrochon We would need a reproducible example repository and ideally I'd recommend filing a new issue. |
npm install babel-preset-es2015 babel-preset-stage-2 --save after installing this working fine now @rbatllet Thanks |
@altaf4web Thanks. This works for me. |
@rbatllet answer works! :D |
I use gulp-babel in electron,I have all the dependencies installed.
the code is :
When I was developing, everything was all right.
Bug When I packed electron app and run , it throw:
I don't know whose fault it is. Can you help me? Thanks.
The text was updated successfully, but these errors were encountered: