-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
missing @babel/plugin-transform-react-jsx-self after run eject #6679
Comments
Thanks! I was able to repro with the commands given. I'm taking a look at it now. npx create-react-app issue_6679 --typescript
cd issue_6679
yarn run eject
yarn run start |
This seems to be an intermittent issue. We see this every once in a while on CI and then it disappears. I was trying to reproduce it locally last week without success. If anyone can reproduce it consistently that would be a great first step. |
Running to the same problem here.
It seems like after running I try to fix the broken one with create-react-app/packages/react-scripts/scripts/eject.js Lines 309 to 312 in e630238
|
@abel1105 Really good detective work! Thank you so much. I don't have a solution, but I can consistently reproduce this. Roughly here's what's up: node_modules after
node_modules after - @babel/plugin-transform-react-jsx-self/
@babel/preset-react/
+ @babel/preset-react/node_modules/@babel/plugin-transform-react-jsx-self/
babel-preset-react-app/
babel-preset-react-app/node_modules/@babel/preset-react/ node_modules after @babel/preset-react/
@babel/preset-react/node_modules/@babel/plugin-transform-react-jsx-self/
babel-preset-react-app/
- babel-preset-react-app/node_modules/@babel/preset-react/ Not sure what the fix is, or even how to search for this issue in the yarn issue tracker. But at least we have a handle on why it's happening. |
Closing in favor of #6099 |
Is this a bug report?
bug
Did you try recovering your dependencies?
i run
yarn add @babel/plugin-transform-react-jsx-self -D
and fixed itEnvironment
version
2.1.8
Steps to Reproduce
(Write your steps here:)
create-react-app test-rc --typescript
Expected Behavior
no error
Actual Behavior
The text was updated successfully, but these errors were encountered: