-
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
fix(gatsby-cli): Resolve babel preset ts explicitly #35153
Merged
LekoArts
merged 1 commit into
master
from
fix/gatsby-cli-add-plugins-ts-preset-resoltion
Mar 17, 2022
Merged
fix(gatsby-cli): Resolve babel preset ts explicitly #35153
LekoArts
merged 1 commit into
master
from
fix/gatsby-cli-add-plugins-ts-preset-resoltion
Mar 17, 2022
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gatsbot
bot
added
the
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
label
Mar 17, 2022
LekoArts
added
topic: cli
Related to the Gatsby CLI
and removed
status: triage needed
Issue or pull request that need to be triaged and assigned to a reviewer
labels
Mar 17, 2022
LekoArts
approved these changes
Mar 17, 2022
gatsbybot
pushed a commit
that referenced
this pull request
Mar 18, 2022
(cherry picked from commit 30ecc7d)
pieh
added a commit
that referenced
this pull request
Mar 18, 2022
Co-authored-by: Ty Hopp <[email protected]> Co-authored-by: Michal Piechowiak <[email protected]>
Published in |
This was referenced Nov 30, 2023
This was referenced Nov 30, 2023
This was referenced Dec 1, 2023
This was referenced Dec 1, 2023
This was referenced Dec 2, 2023
This was referenced May 13, 2024
This was referenced May 14, 2024
This was referenced May 14, 2024
This was referenced May 15, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Due to babel/babel-loader#166 (comment), Babel can't access the TS preset unless resolved explicitly.
Reason for this is in
create-gatsby
werequire
handlers fromgatsby-cli
(presumably to avoid adding Babel deps tocreate-gatsby
since they may not be needed if customers don't select plugins in the questionnaire [?]) and as a result of the above issue Babel isn't aware of the preset available ingatsby-cli
.Validated locally by pointing
create-gatsby
to my fork ofgatsby-starter-minimal-ts
with the patch applied - https://github.com/tyhopp/gatsby-starter-minimal-ts.This will need to be released as a patch before #35128 can be merged
Documentation
No new docs needed
Related Issues
[sc-47001]