-
Notifications
You must be signed in to change notification settings - Fork 558
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
Subscription not defined in react native - debug mode #1711
Comments
+1 |
I solved this problem by uninstalling the app from the simulator and build it again Edited: Sorry it turns out that this method is not working for me as well... |
Didnt worked for me, I even reset the simulator, reinstall modules, link aigan, etc. All worked fine with no debug mode. In debug mode the error appears again and if I comment import realm then debug mode works. For the moment I use 2.2.15 if i upgrade to 2.3.0 I will get the same error. Just 1 min ago updated back to 2.3.0, uninstall the application from simulator, started again the builder etc, => Subscription is not defined |
Same issue here. Downgrading from |
+1 |
+1 |
Updating to 2.3.3 and deleting the app from simulator and rebuilding worked for me Update: It does not work.. it just seems to silence the issue but communicating with realm results in the app freezing |
Having the same issue. |
2.3.3 still not fixed, same issues. |
+1 |
I downgraded from 2.3.0 to 2.2.8 |
Thank you @jadelmir , i followed your steps and it worked 👍 |
Downgrading realm@2.3.3 to realm@2.2.15 still has this issue |
@V1sk I had the same issue. In my case, one of my apps dependencies had a child dependency to the realm js. Check your child dependencies. |
@jadelmir Thanks, it works for me |
Same here, any Realm 2.3.+ produces this error. 2.2.18 works fine. |
Same here, Realm 2.3.3 produces this error. 2.2.18 works fine. |
+1, please fix this critical bug |
Please see #1744 |
Installed 2.3.3, still getting the Subscription is not defined error. Not getting it with 2.2.18 |
So now that #1744 is in, and while we await the upcoming release, the fix could be confirmed with a package build from master. I checked but didn't see instructions that I understand. Anyone know how to build the package? (Just specifying |
No, it hasn't been released. And 2.3.4 was released last week: https://github.com/realm/realm-js/releases/tag/v2.3.4 |
Same here, 2.3.4 shows this error. |
I have release 2.3.5, please report back if it doesn't work. |
@kneth I get the error "Cannot redefine property: logout" |
@Dexwell @jeprojects I mentioned this error in #1744 comment section, but I did not get answers about it. Line 45 in c3a83f1
Apparently this function is called here: Line 387 in c3a83f1
|
Hi guys! We are having the same problem over here...please let us know when you think a new release with this issue fixed will be published. thanks! |
I have unpublished 2.3.5 and released it as 2.4.0 (and sneaked the |
I am still encountering this issue on 2.4.0 |
@Unforgiven-wanda Are you using |
@artutra No. I believe none of my libs have realm as a dependency. |
@Unforgiven-wanda Maybe checking |
@kneth Deleting |
@Unforgiven-wanda RN debugging is our weakest point, please read #491 (comment) |
I just tested and #1711 is fixed in 2.4.1 |
Former-commit-id: 76bfb93
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.
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
The text was updated successfully, but these errors were encountered: