-
I'm making an app in a I've completed the environment setup steps, running the following as an administrator in Powershell: PS C:\Windows\system32> Set-ExecutionPolicy Unrestricted -Scope Process -Force;
PS C:\Windows\system32> C:\Users\jamie\git\banana_native\node_modules\react-native-windows\scripts\rnw-dependencies.ps1 See react-native infoSystem:
OS: Windows 11 10.0.22631
CPU: (4) x64 Apple Silicon
Memory: 1002.04 MB / 7.99 GB
Binaries:
Node:
version: 20.15.0
path: ~\AppData\Local\Volta\tools\image\node\20.15.0\node.EXE
Yarn: Not Found
npm:
version: 10.7.0
path: ~\AppData\Local\Volta\tools\image\node\20.15.0\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowDevelopmentWithoutDevLicense: Enabled
Versions:
- 10.0.19041.0
- 10.0.22621.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.10.35027.167 (Visual Studio Community 2022)
Languages:
Java: Not Found
Ruby: Not Found
npmPackages:
"@react-native-community/cli": Not Found
react: Not Found
react-native: Not Found
react-native-windows: Not Found
npmGlobalPackages:
"*react-native*": Not Found
Android:
hermesEnabled: true
newArchEnabled: false
iOS:
hermesEnabled: Not found
newArchEnabled: Not found However, when I try to run
See build logs for react-native run-windows
What's the most elegant way to solve this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Looks like I can solve it by manually editing the .sln (in my case, There was also a follow-up issue. It looks like Closing, though will be interested in better monorepo support in future. |
Beta Was this translation helpful? Give feedback.
Looks like I can solve it by manually editing the .sln (in my case,
banana.sln
) to prepend..\..\
to the paths.There was also a follow-up issue. It looks like
react-native-windows
also expects to be run alongside a closely-corresponding version ofreact-native
, because it compiles some of the files from it. When I used[email protected]
alongside[email protected]
, react-native-windows was unable to find some C++ files from Yoga. Updating to[email protected]
to get them both on the same minor version fixed that.Closing, though will be interested in better monorepo support in future.