software-mansion / software-mansion/react-native-screens

Projects with this package fail to build for Windows

Open
#3,589 4 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

missing-repro platform:windows
Dominant language
TypeScript
Stars
3.7k
Forks
714
Avg merge
2d 23h
Merged PRs (30d)
71

Description

Description

Projects with the react-native-screens package fail to build for windows:

fatal error LNK1104: cannot open file 'C:\Users<username>.nuget\packages\microsoft.windowsappsdk\1.7.250401001\buildTransitive\native....\lib\win10-\Microsoft.WindowsAppRuntime.Bootstrap.lib' [RNWinRepro\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]. Check your build configuration.

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
Snack or a link to a repository

See minimal repro

Screens version

4.20.0

React Native version

0.81.2

Platforms

Windows

JavaScript runtime

None

Workflow

None

Architecture

None

Build type

None

Device

None

Device model

No response

Acknowledgements

Yes

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the listed Windows reproduction commands and the linker error in Microsoft.ReactNative.vcxproj. Investigate how react-native-screens 4.20.0 and react-native-windows 0.81.2 resolve the Microsoft.WindowsAppSDK library path. Done means the minimal project builds and runs for Windows without LNK1104.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native
Domain
build-system, mobile, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.