Skip to content

Projects with this package fail to build for Windows #1232

Description

@Nezz

What happened?

Projects with the @react-native-async-storage/async-storage package fail to build for windows:

error MSB4006: There is a circular dependency in the target dependency graph involving target "CppWinRTComputeGetResolvedWinMD". [RNWinRepro\windows\RNWinRepro\RNWinRepro.vcxproj]. Check your build configuration.

Version

2.2.0

What platforms are you seeing this issue on?

  • Android
  • iOS
  • macOS
  • Windows
  • web

System Information

info Fetching system and libraries information...
System:
  OS: Windows 11 10.0.22631
  CPU: "(24) x64 AMD Ryzen 9 5900X 12-Core Processor            "
  Memory: 15.16 GB / 31.91 GB
Binaries:
  Node:
    version: 22.18.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\Program Files (x86)\Yarn\bin\yarn.CMD
  npm:
    version: 10.9.3
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK: Not Found
  Windows SDK:
    AllowDevelopmentWithoutDevLicense: Enabled
    AllowAllTrustedApps: Enabled
    Versions:
      - 10.0.19041.0
      - 10.0.22621.0
      - 10.0.26100.0
IDEs:
  Android Studio: Not Found
  Visual Studio:
    - 17.14.36915.13 (Visual Studio Community 2022)
Languages:
  Java: Not Found
  Ruby:
    version: 3.0.2
    path: C:\Ruby30-x64\bin\ruby.EXE
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.0
    wanted: 20.0.0
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.2
    wanted: 0.81.2
  react-native-windows:
    installed: 0.81.2
    wanted: 0.81.2
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.83.0 is now available (your project is running on v0.81.2).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.83.0
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.81.2&to=0.83.0
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Steps to Reproduce

Run the following scripts to create a new project with this package:

npx --yes @react-native-community/cli@latest init RNWinRepro --version 0.81.2
cd RNWinRepro 
yarn add react-native-windows@0.81.2
yarn add @react-native-async-storage/async-storage
npx react-native init-windows --overwrite
npx react-native run-windows

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingv2Related to v2 async storage version

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions