-
Notifications
You must be signed in to change notification settings - Fork 255
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
Expo SDK 43 Error: @react-native-community/netinfo: NativeModule.RNCNetInfo is null. #1600
Comments
Hi @SudoGetBeer Are you able to share some more details around your project? Is this an Expo managed workflow project? Have you tried the suggestions given in that error message? |
It worked and then I upgraded to SDK 43 and building with EAS.
Yes the managed workflow. Tried both the cli and manual.
Bugsnag version: tried 7.14 and 7.13
Yes but it just says:
|
Hi @SudoGetBeer , I've managed to reproduce what you are seeing.
Let me know if this works for you. |
The command works now. |
@johnkiely1 any other ideas? |
I'm getting the same issue. |
I wonder if this is related to using EAS build? EAS build is not something we have tested with so its plausible this is causing the issue. Would it be possible to test running this with |
@johnkiely1 |
It seems it is the eas. With the old build the app don't crash on startup |
@johnkiely1 Yes, I am in the process of switching to using EAS build. I'm assuming bugsnag's expo client had been assuming netinfo was natively available, but that has changed with EAS... but, I'm still getting up to speed on how this all works so not too certain. |
I did come across this, https://forums.expo.dev/t/eas-build-does-not-install-dependencies-defined-in-other-node-modules/59178 which seems related. There is also this suggestion here which might help. Perhaps there is a way to ensure the netinfo dependency is loaded correctly via some EAS build config. I'm not sure what that would be as I'm not at all familiar with EAS build as it is not something that is officially supported by Bugsnag. We have a roadmap item to look into supporting it the future but we don't have an estimate for when this might be as yet. |
Closing, as we believe this is a build issue related to EAS. We plan to consider official support for Expo EAS Build in the future. |
OK, and just to update the thread, I did fix my build by manually adding the netinfo dependency. Perhaps best-practice wrt EAS Build will be for 3rd party libs to specify these dependencies, but I'm not totally sure. Expo is moving towards EAS Build being the primary build process though, as the old build process will be phased out. |
If anyone still has the issue using dev client, try running |
It works on expo go but on running on development build it gives error ERROR Error: @react-native-community/netinfo: NativeModule.RNCNetInfo is null. To fix this issue try these steps: • Run
If none of these fix the issue, please open an issue on the Github repository: https://github.com/react-native-community/react-native-netinfo, js engine: hermes |
Describe the bug
If I use
import Bugsnag from '@bugsnag/expo'
I get this error log and the app crashes:Environment
The text was updated successfully, but these errors were encountered: