Closed Yajur-Grover closed 1 month ago
I had a quick look at your branch and I have a few questions:
package-lock.json
here. Did you run npm i
instead of yarn install
?sample
folder?package.json
. This causes issues because now you have duplicates of everything.That said, I am not quite sure why the image asset cannot be found. The templates RNTA uses are the ones found here: https://github.com/microsoft/react-native-windows/tree/main/vnext/templates/cpp-app
And as far as I can see, the .wapproject
and the images match. Additionally, RNTA also has images for scales 100% and 400%.
I've noticed that during build, an AppxManifest.xml
is generated under node_modules/.generated/windows/Win32/bin/x64/Debug/
. This one also contains references to Images/*
, but the directory is missing them entirely. This is probably the actual cause of your build issues. I have no why the images weren't copied over.
@acoates-ms: Is this something you've encountered before?
On closer inspection, there are differences in the .wapproj
. Hopefully, the PR above will help with missing assets.
What happened?
I am trying to upgrade the async-storage windows module to run on the new architecture, and am facing some issues when trying to launch the example app. I ran
yarn install-windows-test-app --use-fabric
to update the example app in the async-storage repo, as well as the cpp-lib template to update the default-storage package. When runningyarn react-native run-windows
to launch the sample app, I am getting the following error:I think it's the images have their scale built into their names, like this:
However, the VisualElements tag doesn't include the name in the tag - just is the following:
Not sure what the issue is - from what I've seen in this PR, the code in my .generated directory is the same as the structure there.
Version
3.8.10
What platforms are you seeing this issue on?
System Information
Steps to Reproduce
Branch which contains issue: https://github.com/Yajur-Grover/async-storage/tree/yg-fabric-windows-upgrade
On the branch, the following steps will reproduce the issue:
yarn
in rootyarn
in packages/default-storageyarn install-windows-test-app -p sample/windows --use-fabric
in packages/default-storageyarn react-native run-windows --root sample --logging
in packages/default-storageCode of Conduct