Closed Yajur-Grover closed 1 month ago
Can you check out https://github.com/microsoft/react-native-test-app/pull/2249 and see if it fixes the paths in the solution file?
Can you check out #2249 and see if it fixes the paths in the solution file?
That change resolved the issues with the paths in the solution file.
@tido64 I ended up removing the web storage module which resolved the codegen-windows issues, and I can build the app successfully when running the app through Visual Studio:
However, when running yarn windows
in example
, I get the following error on the command line:
√ Found Solution: C:\new-account-repos\react-native-test-app\example\windows\Example.sln
i Build configuration: Debug
i Build platform: x64
× Building Solution: Package.appxmanifest : error APPX0703: Manifest references file 'Microsoft.ReactNative.dll'...
× Build failed with message 8:6>Package.appxmanifest : error APPX0703: Manifest references file 'Microsoft.ReactNative.dll' which is not part of the payload. [C:\new-account-repos\react-native-test-app\example\node_modules\.generated\windows\Win32\ReactApp.Package.wapproj]. Check your build configuration.
Command failed. Re-run the command with --logging for more information.
This appears to be the same error that you got in the comment here. Was wondering if you could repro the same on your end.
@tido64 closing this for now as this PR fixes the logic in RNW when passing in undefined
for layoutDirection
.
Description
In
Main.cpp
, currently the call toReactNativeIsland::Arrange()
is being passed an 'undefined'layoutDirection
. This change modifies theconstraints
object so that thelayoutDirection
is not undefined.When trying to launch an example fabric app in this async-storage branch, I got the following error:
This change resolves this issue so that
layoutDirection
is never set toUndefined
.Platforms affected
Test plan
I initially tried following the below test plan, which I got from the PR adding New Architecture:
However,
yarn windows
would give me the following error:Looking at the generated solution file
Example.sln
, the paths for several of the Project declarations were incorrect - e.gMicrosoft.ReactNative
had the path..\\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj
whereas the correct path is..\\..\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj
. After fixing all the instances of this path issue inExample.sln
, the app was able to launch successfully.