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

New architecture support for Windows #925

Open
3 tasks done
joshholmeszonal opened this issue Feb 5, 2025 · 4 comments
Open
3 tasks done

New architecture support for Windows #925

joshholmeszonal opened this issue Feb 5, 2025 · 4 comments
Assignees
Labels
feature request New feature or request

Comments

@joshholmeszonal
Copy link

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

When using React Native Windows (new arch) v0.77. Using a completely fresh sample app. As soon as react-native-permissions gets installed the error thrown when building the windows application is:

 Building Solution: LINK : fatal error LNK1181: cannot open input file 'C:\Users\JoshH2\.nuget\packages\microso...
 × Build failed with message 5:5>LINK : fatal error LNK1181: cannot open input file 'C:\Users\JoshH2\.nuget\packages\microsoft.windowsappsdk\1.6.240923002\buildTransitive\native\..\..\lib\win10-\Microsoft.WindowsAppRuntime.Bootstrap.lib' [C:\Users\JoshH2\permissionsBug\node_modules\react-native-windows\Microsoft.ReactNative\Microsoft.ReactNative.vcxproj]. Check your build configuration.
Command failed. Re-run the command with --logging for more information.

Library version

5.2.5

Environment info

System:
  OS: Windows 11 10.0.22631
  CPU: (4) x64 Intel(R) Xeon(R) E-2124 CPU @ 3.30GHz
  Memory: 23.10 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.1
    wanted: ^0.77.0
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Steps to reproduce

  1. Create New React Native project: npx --yes @react-native-community/cli@next init <projectName> --version "latest"
  2. Add latest windows version: yarn add react-native-windows@^0.77.0
  3. Initialise Windows New Arch: npx react-native init-windows --overwrite --template cpp-app
  4. (optional) Run Windows app to check it works: npx react-native run-windows
  5. Install react-native-permissions: yarn add react-native-permissions
  6. Run windows app: npx react-native run-windows

Reproducible sample code

https://github.com/joshholmeszonal/permissionsBug/tree/main
@joshholmeszonal joshholmeszonal added the bug Something isn't working label Feb 5, 2025
@zoontek
Copy link
Owner

zoontek commented Feb 5, 2025

@joshholmeszonal The windows part of this library is maintained directly by Microsoft, let me ping them.

@zoontek zoontek added feature request New feature or request and removed bug Something isn't working labels Feb 5, 2025
@zoontek zoontek changed the title Not installing for Windows New Arch New architecture support for Windows Feb 5, 2025
@joshholmeszonal
Copy link
Author

Hey @zoontek with this changing to a feature, is it something that Microsoft will be working on?

@zoontek
Copy link
Owner

zoontek commented Feb 5, 2025

@joshholmeszonal I asked, let's see.

@stmoy
Copy link

stmoy commented Feb 5, 2025

Thanks for bubbling this up! I've filed an issue on the RNW repo: microsoft/react-native-windows#14339

Please don't hesitate to file issues directly on the React Native for Windows repo (which is actively monitored and triaged): https://github.com/microsoft/react-native-windows/issues/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants