Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Solution not building with New Arch on Windows #2637

Closed
joshholmes22 opened this issue Jan 20, 2025 · 2 comments
Closed

Solution not building with New Arch on Windows #2637

joshholmes22 opened this issue Jan 20, 2025 · 2 comments
Labels
Platform: Windows This issue is specific to Windows Repro provided A reproduction with a snack or repo is provided

Comments

@joshholmes22
Copy link

Description

After creating a new React Native with Windows project using the new arch with the cpp-app template on Windows, after adding RNScreens, the solution doesn't build for Windows. The error is:

Building Solution: XamlLibMetadataProvider.g.cpp... ✖ Build failed with message C:\Users\joshh\coding_bootcamp\projects\zonal\rnScreenTest\node_modules\react-native\ReactCommon\react\runtime\ReactInstance.cpp(205,21): error C2511: 'void facebook::react::ReactInstance::loadScript(std::unique_ptr<const facebook::react::JSBigString,std::default_delete<const facebook::react::JSBigString>>,const std::string &)': overloaded member function not found in 'facebook::react::ReactInstance' [C:\Users\joshh\coding_bootcamp\projects\zonal\rnScreenTest\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]. Check your build configuration.

Using "react-native-windows": "^0.76.0"

Steps to reproduce

  1. Create RN app with Windows using cpp-app template
  2. Install react-native-screens
  3. Try and build for windows

Snack or a link to a repository

https://github.com/joshholmes22/rnScreens-windows

Screens version

4.5.0

React Native version

0.76.6

Platforms

Windows

JavaScript runtime

Hermes

Workflow

React Native (without Expo)

Architecture

Fabric (New Architecture)

Build type

Debug mode

Device

Real device

Device model

Windows PC

Acknowledgements

Yes

@github-actions github-actions bot added Repro provided A reproduction with a snack or repo is provided Platform: Windows This issue is specific to Windows labels Jan 20, 2025
@kkafar
Copy link
Member

kkafar commented Jan 21, 2025

Hey, thanks for the report. I'll close this ticket in favour of #2541. It reports slightly different stack trace but it relates to blocking build issues on windows.

@kkafar kkafar closed this as completed Jan 21, 2025
@joshholmeszonal
Copy link

@kkafar - just to highlight, that other issue is using UWP and windows old arch (shown in package.json) this is using the new arch

Hopefully the issues are the same though. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Platform: Windows This issue is specific to Windows Repro provided A reproduction with a snack or repo is provided
Projects
None yet
Development

No branches or pull requests

3 participants