-
-
Notifications
You must be signed in to change notification settings - Fork 548
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
Native Stack is not working with [email protected] #2541
Comments
Thanks for reporting! Noted. I'll try to get someone to look into this. |
It works fine using 4.2.0 |
I have the same error during Windows build with react-native-webview 13.13.1 on [email protected] and using the new architecture. |
I had this and solved it by editing <?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="packages" />
</config>
<packageSources>
<clear />
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration> to <?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="packages" />
</config>
<packageSources>
<clear />
<add key="Nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3"/>
<add key="react-native" value="https://pkgs.dev.azure.com/ms/react-native/_packaging/react-native-public/nuget/v3/index.json" />
</packageSources>
<disabledPackageSources>
<clear />
</disabledPackageSources>
</configuration> |
IMO #2649 is not the same issue as this (though it is a Windows issue). Have you tried clearing the npm cache (with |
No, I haven't tended to this issue yet. Will update when I do |
I encountered the same issue as #2649, but I haven't been able to resolve it. This is a major blocker for the Windows platform... |
@kkafar have you had any luck with this so far? I've tried taking a look but getting stuck when trying to link RNScreens to the Fabric Example |
@kkafar is this something that maybe Microsoft would be able to support with as it seems like a massive blocker for a lot of Windows builds It looks like they're helping out with some packages like these: It looks like @Yajur-Grover is supporting from Microsoft |
Just to confirm, this issue is present on the New Architecture correct? |
@Yajur-Grover if we're talking about the specific repo that @pcprinz links to in the first post, it is the old architecture, I believe. The report says However if I try to reproduce it myself, I don't get the same error message that was reported (still doesn't work though). So I think a bit more investigation is needed. Can you confirm - should it work on the old architecture? |
All the windows issues seem to have been condensed to this one regardless of new/old arch |
I believe it should still work on old architecture. I will try and take a look at the repo and repro the issue locally today to investigate. |
@Yajur-Grover can you also take a look on this issue #2649, on new architecture? The issue was closed as a duplicate of this one, but it's actually not the same issue |
It looks like you're trying to use |
@pcprinz I was able to build the solution fine using the branch linked in the message, but the app was auto-closing on launch. Can you try and re-run |
This auto-close thing is exactly what I see so it is reproducible at least! I did a bit more investigation of this and I think it is due to a class ( |
I've tried a few things with no success so I could really do with some advice on this. My plan is to start with the pcprinz repo mentioned at the top of this post, but replace the dependency on react-native-screens from npmjs with a local checkout, then I can edit it and hopefully start to fix the missing parts
I feel this ought to work (and give me the app that closes on launch) but it does not. Instead I see an error
I tried adding the reference as suggested but that did not change anything. I must be missing something - is there something I need to do to my local react-native-screens to make it work like the one on npmjs? |
Description
After a clean
[email protected]
installation followed by the recommended installation for the native stack from the Getting Started guide, I get the following build error:Steps to reproduce
@react-navigation/native
,react-native-screens
,react-native-safe-area-context
,@react-navigation/native-stack
,@react-navigation/elements
npx @react-native-community/cli run-windows
Snack or a link to a repository
https://github.com/pcprinz/react-native-windows-tests/tree/0.76-failing-native-stack
Screens version
4.3.0
React Native version
0.76.2
Platforms
Windows
JavaScript runtime
Hermes
Workflow
React Native (without Expo)
Architecture
Paper (Old Architecture)
Build type
None
Device
None
Device model
No response
Acknowledgements
Yes
The text was updated successfully, but these errors were encountered: