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

I am getting an error. (undefined is not an object ) #645

Closed
avijit-ordering opened this issue Nov 14, 2022 · 2 comments
Closed

I am getting an error. (undefined is not an object ) #645

avijit-ordering opened this issue Nov 14, 2022 · 2 comments

Comments

@avijit-ordering
Copy link

Possible Unhandled Promise Rejection (id: 3):
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[10], "pusher-js").Pusher')
I am using
"pusher-js": "^7.4.1"
"react-native": "^0.64.2"
OS: Windows-10
Platform: Android

My pusher code worked well but recently after the build pusher is not working. Can you please check and help me please?

@hirbod
Copy link

hirbod commented Nov 15, 2022

The last working version with react-native is 7.4.0.

ReferenceError: Property 'Buffer' doesn't exist, js engine: hermes

For now, I downgraded back to 7.4.0 and its working fine. Looks like there is an issue with Buffer polyfill not being loaded correctly or something?

@benjamin-tang-pusher
Copy link

If you're using pusher-js with react-native, and not our react native library, then you will need to lock the version to 7.4.0 (not 7.4.1). Development focus will be on our RN library moving forward, and we're currently we're unlikely fix this specific pusher-js issue.

@benjamin-tang-pusher benjamin-tang-pusher closed this as not planned Won't fix, can't repro, duplicate, stale Jan 13, 2023
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

3 participants