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

Error Unable to resolve module @react-native-community/netinfo #130

Open
arpitv96171 opened this issue Jan 8, 2024 · 1 comment
Open

Comments

@arpitv96171
Copy link

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
After installation of react-native-pusher-js using the command yarn add @pusher/pusher-websocket-react-native, when I bundle the ios app, the following error pops:

 Unable to resolve module @react-native-community/netinfo from /path-to-node_modules/pusher-js/dist/react-native/pusher.js: @react-native-community/netinfo could not be found within the project or in these directories:
  ../node_modules/pusher-js/node_modules
  ../node_modules

If the current behavior is a bug, please provide the steps to reproduce and
if possible a minimal demo of the problem via https://jsfiddle.net or similar.

As mentioned above

What is the expected behavior?
No error

Which versions of Pusher, and which browsers / OS are affected by this issue?
Did this work in previous versions of Pusher? If so, which?

"@pusher/pusher-websocket-react-native": "1.3.0"
"@react-native-community/netinfo": "11.2.1"

@benw-pusher
Copy link
Contributor

You may need into install netinfo as well.

npm install --save @react-native-community/netinfo

Can you confirm if this resolves the issue for you?

I'm not sure why this isn't listed as a dependency for automatic install though.

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

No branches or pull requests

2 participants