question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Subscription not defined in react native - debug mode

See original GitHub issue

Goals

Debugging react native application using realm 2.3.0. The bug is generating when importing realm. All works fine in non-debug mode. In 2.2.15 debug works ok.

simulator screen shot - iphone 6 - 2018-03-14 at 00 33 53

exports.default = Realm; util.createMethods(Realm.prototype, _constants.objectTypes.REALM, [‘addListener’, ‘removeListener’, ‘removeAllListeners’, ‘close’, ‘_waitForDownload’, ‘_objectForObjectId’]); util.createMethods(Realm.prototype, _constants.objectTypes.REALM, [‘delete’, ‘deleteModel’, ‘deleteAll’, ‘write’, ‘compact’, ‘beginTransaction’, ‘commitTransaction’, ‘cancelTransaction’], true); var Sync = { User: _user2.default, Session: _session2.default, Subscription: Subscription }; index.bundle?platform=ios&dev=true&minify=false:13121 Subscription is not defined

Actual Results

Steps to Reproduce

Code Sample

Version of Realm and Tooling

  • Realm JS SDK Version: 2.3.0
  • Node or React Native: 0.54.2
  • Client OS & Version: ios simulator
  • Which debugger for React Native: React native debugger

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:25
  • Comments:38 (8 by maintainers)

github_iconTop GitHub Comments

14reactions
jadelmircommented, Mar 28, 2018

I downgraded from 2.3.0 to 2.2.8 using npm: install realm@2.2.8 and after that run: react-native link it redownloaded the cocoa packages and it worked fine for me good luck 🥇

7reactions
cosinus84commented, Mar 28, 2018

2.3.3 still not fixed, same issues. I really don’t understand how everyone(besides us here) using 2.3.3 can debug their realm application. How does the realm team debug their application in react native with 2.3.3

Read more comments on GitHub >

github_iconTop Results From Across the Web

Subscription is not defined - reactjs - Stack Overflow
I implemented a react-native app, it runs ok. But 'Subscription is not defined' error happened when enabling 'Debug js remotely' in the ...
Read more >
Debugging - React Native
To use a custom JavaScript debugger in place of Chrome Developer Tools, set the REACT_DEBUGGER environment variable to a command that will start ......
Read more >
Analytics for React Native 2.0 | Segment Documentation
When you successfully package a plugin in device-mode, you won't see the integration listed as false in the integrations object for a Segment...
Read more >
Debugging React Native with react-native-debugger
1. How do I debug in React Native? ... To open the Developer Tools, go to the Chrome Menu and select Tools ->...
Read more >
Debugging React Native with VS Code - LogRocket Blog
If you are using Expo, nothing will work yet, and npx react-native doctor won't help you find the issue. To fix this, choose...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found