Not yet able to include non-UI component projects (async-storage, clipboard) in a Fabric project #12786
Labels
Area: Fabric
Support Facebook Fabric
Area: Native Modules
Area: Turbo Modules
enhancement
New Architecture
Broad category for issues that apply to the RN "new" architecture of Turbo Modules + Fabric
Workstream: Module Support
Module developers have the requisite tooling and clear path for adding windows support to modules.
Milestone
Problem Description
I decided to try to push the Fabric chat app to the next level of legitimacy, by enabling some non-UI modules. async-storage, specifically: async-storage/packages/default-storage/windows. So I restored the dependency in my package.json:
"@react-native-async-storage/async-storage": "^1.17.11",
And it fails to build because...
Duplicate types.
Looking at the updated
package.lock.json
... it's pulling in Microsoft.UI.Xaml 2.8.0 (and WebView2). Which... async storage shouldn't need. It's just a code module, no UI.See this commit
I'd guess this something with the RNW props pulled in its vcxproj that it'll need different for Paper UWP vs. Fabric Win32?
Steps To Reproduce
"@react-native-async-storage/async-storage": "^1.17.11",
Expected Results
Builds
CLI version
13.0.0
Environment
Target Platform Version
None
Target Device(s)
No response
Visual Studio Version
Visual Studio 2022
Build Configuration
Debug
Snack, code example, screenshot, or link to a repository
https://github.com/chrisglein/artificial-chat/tree/fabric_addModules
chrisglein/artificial-chat@7c4e02d
The text was updated successfully, but these errors were encountered: