[BUG] Metro still can't build on windows
See original GitHub issueRepro: Just build RNTester on windows.
Related issue: https://github.com/facebook/react-native/issues/20353, https://github.com/facebook/metro/issues/181.
From what I test, 0.42.1
works. But not 0.42.2
, 0.43.1
. 0.43.2
., 0.43.3
.
You can also see the appveyor build log: https://ci.appveyor.com/project/gengjiawen/react-native/build/1.0.22/job/it491en7tm6r69cq.
D:\Developer\react-native\local-cli\cliEntry.js:30
import type {CommandT} from './commands';
^^^^
SyntaxError: Unexpected identifier
at new Script (vm.js:74:7)
at createScript (vm.js:246:10)
at Object.runInThisContext (vm.js:298:10)
at Module._compile (internal/modules/cjs/loader.js:657:28)
at Module._compile (D:\Developer\react-native\node_modules\pirates\lib\index.js:83:24)
at Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Object.newLoader [as .js] (D:\Developer\react-native\node_modules\pirates\lib\index.js:88:7)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Windows 11 Build 22478.1012 Windows Metro App input error
You may have system files corruption. From an elevated command prompt run DISM /Online /Cleanup-Image /RestoreHealth. Then run sfc /scannow, ...
Read more >Full Screen bug :: Metro Exodus General Discussions
I've been having better luck by launching the game from the windows explorer shortcut than by the GeForce Experience and Epic Games apps....
Read more >Cities: Skylines (Steam) - I can´t build Metro tunnels
Select the tracks in the Metro menu (as seen in your screenshot), then press page down until it switches to underground mode. This...
Read more >Exodus Bug Reporting and Discussion Thread : r/metro - Reddit
I was literally playing the game 10 minutes ago in PC using Epic Games and just entered Caspian area. After leaving the train...
Read more >Bug listing with status RESOLVED with resolution OBSOLETE ...
Bug :1523 - "[IDEA] Offload work by distributing trivial ebuild maintenance to users, ... Bug:229789 - "Genkernel 3.4.10 can't build system" status:RESOLVED ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We’ve just published Metro
v0.43.4
which should fix the windows issues: https://github.com/facebook/metro/releases/tag/v0.43.4Thanks for the information @gengjiawen !
This means that we reintroduced the issue in one of the following commits: https://github.com/facebook/metro/compare/v0.42.1...v0.42.2
@pvdz The most probable thing that can be causing this issue is the upgrade to babel7-beta.54 + the revert of the windows dir normalization.
@gengjiawen can you test if
v0.43.3
+ a revert of https://github.com/facebook/metro/commit/0b70c9a5db55deb1bd21add57972d66c20c25e2e fixes the issue? if not can test it tomorrow (I’m in European time)