Uh oh!
There was an error while loading. Please reload this page.
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 |
gengjiawen
commented
Jul 12, 2018
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
7b2e22cComparegengjiawen
commented
Jul 12, 2018
@pvdz The metro issue has been around for a month. Can you help on this issue ? |
ec52f94 to
3589b8fComparegengjiawen
commented
Jul 19, 2018
@hramos This can be merged. |
3589b8f to
bf2a551CompareSome clarification:
|
hramos
commented
Jul 20, 2018
@gengjiawen I'll defer to @pvdz for approval + merging. |
@pvdz Can you merge this pr ? I add some clarification in previous comment. |
pvdz
commented
Jul 23, 2018
@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! |
gengjiawen
commented
Jul 23, 2018
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
b1890cdComparegengjiawen
commented
Aug 1, 2018
@dulmandakh@janicduplessis Can you guys review my pr ? Thanks. |
b1890cd to
b69a154Comparegengjiawen
commented
Aug 3, 2018
@rafeca I have updated the code. |
rafeca
commented
Aug 3, 2018
This looks good to me, I'm going to import this to Phabricator. @hramos : any thoughts? |
facebook-github-bot
left a comment
There was a problem hiding this comment.
rafeca has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
react-native-bot
commented
Aug 3, 2018
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.