Closed qmatteoq closed 2 years ago
Many of our core contributors are taking some much needed vacation throughout December 2021. Thank you for being patient while we relax, recharge, and return to a normal responsiveness in January 2022. In the meantime feel free to continue to pose questions, open issues, and make feature requests - you just may not get a response right away.
+1
Cannot find module 'react-native-windows/local-cli/generate-windows'
In triage hearing that a number of people have also seen this. We should investigate.
I can repro this but I'm not sure yet what's going on. As @qmatteoq mentioned, running it a second time, everything works, but obviously it shouldn't be necessary to run it twice :)
it looks like the init script is falling down a legacy codepath instead of using the 63+ codepath. CC @jonthysell
Fix will be out shortly.
published a new npm package, should be fixed now.
Problem Description
When I call
npx react-native-windows init --overwrite
in a folder which contains a new React Native project, I get the following error:If I try to perform the same initialization command again after the error, the second time it works, and Windows support gets added succesfully.
Steps To Reproduce
Expected Results
Windows support is installed without problems immediately, without seeing any error and having to repeat the command twice.
CLI version
6.3.1
Environment
Target Platform Version
10.0.19041
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
No response