-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
Getting error with babel inside Gatsby #195
Comments
Are you trying to use Babel 6 with your site?
|
No, I just used Gatsby to generate and then gatsby develop |
So you ran:
And then saw this error? |
This is the error I also get when I try to generate and test a gatsby site inside a project using Babel 6. The directory generated by gatsby has its own dependencies, its own babelrc file, so why is there a conflict? |
It's beyond me why but that's how Babel works. As I understand it, Babel looks to parent directories (perhaps until it finds a Just to double-check we understand the problem correctly — if you copy the Gatsby site to its own directory does it work then? |
And here's the PR actually :) https://github.com/gatsbyjs/gatsby/pull/197/files Want to also make Gatsby default to using the locally installed version of Gatsby so not going to merge and release this tonight but if you want to clone the PR and see if that gets you working, that'd be great. |
Yes @KyleAMathews, if it's in a complete different directory (or if the babelrc of the parent directory is removed), it works as expected. I'll test it :) |
Everytime I try to do
gatsby develop
I get this error.I've tried the two latest versions of gatsby with the same result.
I tried use the master from github, ran the build scripts, set published to true and then got the same result.
I guess this is connected to the other issue to upgrade to babel 6. But am I just missing something?
The text was updated successfully, but these errors were encountered: