Skip to content

Async Storage not working for Windows New Arch #14347

Closed
@joshholmeszonal

Description

@joshholmeszonal

Problem Description

Hi,

When using the new arch on Windows, async storage crashes the build once installed

 × Building Solution: asyncTest.vcxproj -> C:\Users\JoshH2\asyncTest\windows\x64\Debug\asyncTest.exe...
 × Build failed with message 2:7>C:\Users\JoshH2\.nuget\packages\microsoft.windows.cppwinrt\2.0.230706.1\build\native\Microsoft.Windows.CppWinRT.targets(228,13): error MSB4006: There is a circular dependency in the target dependency graph involving target "CppWinRTComputeGetResolvedWinMD". [C:\Users\JoshH2\asyncTest\windows\asyncTest\asyncTest.vcxproj]. Check your build configuration.
Command failed. Re-run the command with --logging for more information.

It looks like there's also an open bug here which hasn't had any activity: react-native-async-storage/async-storage#1174

Raising this here as it looks like it's maintained by Microsoft due to this PR react-native-async-storage/async-storage#1147 from @Yajur-Grover

Should this be working with RN v0.77?

Steps To Reproduce

  1. Create a new repo with cpp-app windows
  2. Install async storage
  3. Build crashes

Expected Results

Async storage is useable with Windows New Arch

CLI version

15.0.1

Environment

System:
  OS: Windows 11 10.0.22631
  CPU: (4) x64 Intel(R) Xeon(R) E-2124 CPU @ 3.30GHz
  Memory: 19.56 GB / 31.87 GB
Binaries:
  Node:
    version: 22.12.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\Program Files\nodejs\yarn.CMD
  npm:
    version: 10.9.0
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.18362.0
      - 10.0.19041.0
      - 10.0.22621.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.12.35514.174 (Visual Studio Professional 2022)
Languages:
  Java: Not Found
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.0.1
    wanted: 15.0.1
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.77.0
    wanted: 0.77.0
  react-native-windows:
    installed: 0.77.2
    wanted: ^0.77.0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Community Modules

None - just started a blank app and only installed Async Storage

Target Platform Version

None

Target Device(s)

Desktop

Visual Studio Version

Visual Studio 2022

Build Configuration

Debug

Snack, code example, screenshot, or link to a repository

No response

Metadata

Metadata

Assignees

Labels

Area: CLIArea: Native ModulesExtensionsTracks issues against community modules and extensionsExternalIssue tracked in this repo but change will need to happen in another repoNew ArchitectureBroad category for issues that apply to the RN "new" architecture of Turbo Modules + FabricWorkstream: Module SupportModule developers have the requisite tooling and clear path for adding windows support to modules.bug

Type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions