-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Run yarn
during ejecting to avoid hoisting issues and fix CI
#3806
Conversation
Could never get this working on windows: #3347 |
We somehow run Yarn from Create React App itself, don't we? So maybe we could run it in the same way? |
If this passes Travis but doesn't work on Windows we'll debug further with @BYK tomorrow. |
Ooh maybe this is because we delete |
For future reference, what likely happens here is that running |
5a00671
to
5bc562a
Compare
This works. Travis has some temporary issues but they're not our fault. |
yarn
during ejecting to avoid hoisting issues and fix CI
* Try to fix CI * Bump Jest elsewhere * Bump Babel elsewhere * Fix CI on Windows by writing .cmd file back
* Try to fix CI * Bump Jest elsewhere * Bump Babel elsewhere * Fix CI on Windows by writing .cmd file back
Our CI started failing, possibly after Jest released a 21.1.0 update.
After chatting to @BYK our best guess is that because we didn't re-run Yarn after ejecting, the new script location (in the root
/scripts
folder rather than innode_modules/react-scripts/scripts
) started picking up a differentbabel-core
version that was previously being hoisted (6.x judging by the stack trace that has/lib/
in it) than the onereact-scripts
wanted (7.0 bridge).Our current behavior always seemed weird to me (#3356), and now that it's possibly causing bugs, I think we should try getting rid of that special case. Perhaps those issues in the TODO are not relevant anymore, or maybe we can find better fixes for them. Conceptually re-running yarn sounds like the only right thing to do.
I'm kind of shooting in the dark here so I also tried to update other Jest packages while we're at it.