realm-js: UserProvider.js throwing app.addListener is not a function error

How frequently does the bug occur?

All the time

Description

I am seeing an error when setting up realm/react with the user provider . My app is stuck on the splash screen and I get an error in my console that looks like this. This error comes straight from the UserProvider.js file in the react/realm package. Is this intended?

Stacktrace & log output

ExceptionsManager.js:149 TypeError: app.addListener is not a function

This error is located at:
    in UserProvider (at App.tsx:67)
    in AppProvider (at App.tsx:66)
    in App (at sdk.js:98)
    in ReactNativeProfiler (at sdk.js:97)
    in RCTView (at View.js:32)
    in View (at touchevents.js:23)
    in __Sentry.TouchEventBoundary (at sdk.js:96)
    in RootApp (at renderApplication.js:50)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:92)
    in RCTView (at View.js:32)
    in View (at AppContainer.js:119)
    in AppContainer (at renderApplication.js:43)
    in thedriverclient(RootComponent) (at renderApplication.js:60)

Can you reproduce the bug?

Yes, always

Reproduction Steps

No response

Version

@realm/react": “^0.3.1”

What SDK flavour are you using?

Atlas Device Sync

Are you using encryption?

No, not using encryption

Platform OS and version(s)

ios

Build environment

React Native Debugger

Cocoapods version

1.11.3

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

@david011111000101 we are not compatible with the Chrome debugger, so I would expect this error to pop up when it’s turned on. Please refer to our README for debugging alternatives.