-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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 RNTester on Windows #19974
Fix RNTester on Windows #19974
Conversation
Hi! Thanks for the PR. Please split the PR up as it is doing two distinct things under the umbrella of one PR, then consider the following;
This was not an actual fix to #19654, just a workaround for these files. The actual fix was to update the file path logic in metro-babel-register. Babel inadvertently changed behavior to no longer normalize paths between posix/windows and Metro was unaware of it. As a result the babel-register calls failed and led to syntax errors on windows. This has been fixed since so this change is no longer required at all.
This seems relevant to me so it's not entirely clear why you're dropping it. If it's breaking something in Windows please describe what and why dropping this script fixes it. I'm not convinced removing it is the way to go but I could be wrong. For example, you're removing the If you feel this should still be dropped feel free to make a PR for it such that somebody more familiar with this area can take a look. Thanks |
I can split the pr, they are in same pr because I want to fix build problem on windows, which still exists (see #19654). As for |
3e5a8c7
to
7b2e22c
Compare
@pvdz The metro issue has been around for a month. Can you help on this issue ? |
ec52f94
to
3589b8f
Compare
@hramos This can be merged. |
3589b8f
to
bf2a551
Compare
Some clarification:
|
@gengjiawen I'll defer to @pvdz for approval + merging. |
@pvdz Can you merge this pr ? I add some clarification in previous comment. |
@gengjiawen Can you confirm this is still an issue on Metro 42.2 (depending on a new version of Babel) and RN 0.57 (which should resolve most pending Windows issues)? The error reported in #19654 was almost certainly caused by the Babel regression that has been fixed by now. As for this PR, it still drops typing that we want to keep and it still drops a shell script we want to keep so those points have not been addressed. Please confirm this issue is still blocking you with the latest metro/rn or close this ticket if that's now resolved. Thank you! |
The type thing is fixed by metro, I have confirmed here @kelset. As I stated in clarification, My main fix is refactor current unix-like bash to nodejs script so we can test RNTester on windows. |
bf2a551
to
b1890cd
Compare
@dulmandakh @janicduplessis Can you guys review my pr ? Thanks. |
b1890cd
to
b69a154
Compare
@rafeca I have updated the code. |
This looks good to me, I'm going to import this to Phabricator. @hramos : any thoughts? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rafeca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
This pull request was closed by @gengjiawen in a286c0e. Once this commit is added to a release, you will see the corresponding version tag below the description at a286c0e. If the commit has a single |
Motivation
Currrent, RNTester can not work on windows.
Test Plan:
pass all current ci.
Release Notes:
[GENERAL] [INTERNAL] [RNTester] - fix RNTester on windows.