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 is not defined

See original GitHub issue

When running the debugger on a React Native application, it throws a “Subscription is not defined” error. It occurs right at the import Realm from 'realm' line.

Expected results

Run the react native debugger on a react native application with realm

Actual results

Got an error right after set debbuger on image

Steps to reproduce

Create a react native application on android, import realm and activate the debbuger on Chrome

Versions

Realm: 2.3.0 ReactNative: 0.52.2

I believe that this file is missing a import Subscription from './subscription'; https://github.com/realm/realm-js/blob/10480c1afe73b49dc0d6f2a2876f1bccf6d1b588/lib/browser/index.js#L150

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
rmn528commented, Mar 22, 2018

I already downgraded to the version 2.2.15 and the same error persists

1reaction
artutracommented, Mar 19, 2018

Downgrading from realm@2.3.0 to realm@2.2.15 solves this problem for me.

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 >
Subscription not defined in react native - debug mode #1711
Goals Debugging react native application using realm 2.3.0. The bug is generating when importing realm. All works fine in non-debug mode.
Read more >
Subscriptions - Apollo GraphQL Docs
Choosing a subscription library​​ The GraphQL spec does not define a specific protocol for sending subscription requests. The first popular JavaScript library to ......
Read more >
Troubleshooting the subscription widget - Recharge Help
If your subscription widget is showing and the preview says Published, you are set up correctly. If not, contact the Recharge support team....
Read more >
Not Defined as Subscriber Error - Paul Ou Yang
In SQL 2019, if you create a transnational push subscription to a database that participates in an Availability Group, using the subscriber ......
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