-
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
Gatsby should merge .babelrc / babel.config.js to his preset config? #21157
Comments
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
@slorber I don't immediately see how we can fix this. We don't know if you want to merge or want to override. You can include our babel-preset-gatsby yourself. |
sure, I do this, just reported because @sidharthachatterjee asked me on twitter :) |
@wardpeet @sidharthachatterjee I'd like to reopen this issue. I've tried to add this on an existing site that worked (based on Novela theme)
Is this normal it breaks my site? Does it mean that plugin babel configs are not applied anymore? What's the purpose of having a local babel config? Who uses this and how exactly? I really need a .babelrc at the root of my project, yet when I have one, I'm unable to make my siote work. Is there an option to tell gatsby to not use the babel config file, even if there is one? Or an ability to configure the configFile path? I would be very interested to have that. |
Hiya! This issue has gone quiet. Spooky quiet. 👻 We get a lot of issues, so we currently close issues after 30 days of inactivity. It’s been at least 20 days since the last update here. Thanks for being a part of the Gatsby community! 💪💜 |
Hey again! It’s been 30 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Thanks again for being part of the Gatsby community! 💪💜 |
@slorber sorry I didn't see this message. have you installed the preset locally as well? |
Hi, Honnestly I don't remember, I've found a workaround to achieve my goal since then :) |
@slorber Are you fine with closing this then? :) |
Description
This is a potential bug that I reported on Twitter for which @sidharthachatterjee told me to open an issue:
https://twitter.com/chatsidhartha/status/1224192160464982016
Adding an empty .babelrc or babel.config.js at the root of the project makes everything fail, like if the babel plugin wasn't applied property.
I noticed that on my website, based on Novela theme, which is a bit particular, as it is both a Gatsby/Expo app to simplify cross-platform code sharing (didn't want to create a monorepo as RN bundler does not follow symlinks)
https://github.com/slorber/sebastienlorber.com/tree/gatsby-rnw-v3-expo
Was able to reproduce in the official blog theme too.
Steps to reproduce
Expected result
It should work fine, gatsby babel preset should still be applied
Actual result
Various errors
In theme blog, it's basic transpilation errors.
In my website I don't get transpilation errors (because the Expo plugin does transpile the Gatsby code) but it seems like there are query/data problems.
Environment
The text was updated successfully, but these errors were encountered: