-
Notifications
You must be signed in to change notification settings - Fork 210
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
Issue to update #183
Comments
Possibly related:
I believe the issues comes from this line: react-native-meteor/src/Data.js Line 9 in 874112d
RN source where it was defined: https://github.com/facebook/react-native/blob/3683beb88ab3233038ac32b9c33112d537478088/Libraries/Renderer/src/renderers/native/ReactNative.js#L41 @txs what version of React Native are you using? I wonder if @Mokto I checked out the git blame and looks like you made that change - any insight on this? |
RN 0.39.2 |
I'm using the ws not wss |
the line is in WriteTransaction.js "return this.db.batchedUpdates((function(_this) {" line 75 |
@spencercarli Do you know how to solve it? |
@txs no sorry I don't. I'm using the latest React Native and latest version of this packages without any issues. |
I still have this issue and the batchupdate seems deprecated |
I'm having this issue in .45.0-rc.0. When I downrgrade to .44 it goes away |
I think it's a issue with minimongo 0.48 |
I'm using react native 0.42, I'll try upgrade to 0.44 |
I think we have to change it to unstable_batchedUpdate |
Can require("reactUpdates") solve the issue?
dtruel <[email protected]> 於 2017年5月12日 週五 上午3:05寫道:
… I'm having this issue in .45.0-rc.0. When I downrgrade to .44 it goes away
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAh1WW-SlRY7zD-3VIpOdXUyzS6EwBPwks5r41vxgaJpZM4LWbak>
.
|
Hey @txs, I don't have a lot of extra time right now so I'm going to wait to test till .45 comes out of rc because it makes upgrading quicker. Thanks for the tip though. |
0.45.0 is now official and still got this error :( |
Are you using the react native or react native web?
Nguyễn Anh Tuấn <[email protected]> 於 2017年6月8日 週四 下午12:10寫道:
… 0.45.0 is now official and still got this error :(
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#183 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAh1WYFYYvYR36ISBY8ddmQjdrnJKPGFks5sB3Q3gaJpZM4LWbak>
.
|
@txs I use React Native.
|
I'm having the same issue, |
@steven-tib |
@anhtuank7c thanks, I'll switch back to 0.44 then |
I'm having the same issue. Downgrading to 0.44 has helped. Edit issue in mini-mongo-cache package |
I'm having the same problem, and I'm having trouble figuring out how to downgrade to 0.44. Could anyone point me in the direction of some instructions on how to downgrade? |
I think you can just remove your node_modules folder, update the version in your package.json and run npm install. Sent from my OnePlus ONEPLUS A3003 using FastHub |
@steven-tib to avoid staying stuck on 0.44, I was looking into fixing this. |
I was able to get it to work by using ReactDOM. Which is ofcourse not a real solution. Shouldn't need ReactDOM dependency in a react-native project. Anyway sharing it here to get people going until a more structural solution is found. @txs @spencercarli @Mokto @dtruel Any ideas? Data.js:
Make sure to add ReactDOM to your project dependencies. A working branch can be found here: EDIT: I opened an issue in the ReactNative repo as the error is caused by ReactNative no longer exposing unstable_batchedUpdates method. |
@Nauzer I haven't checked this further sorry, just downgraded for now. Thanks for trying to fix it though |
Been working on this all morning. Having trouble upgrading to 0.45 - my app crashes whenever I turn remote debugging on 🙄 |
@spencercarli same here. For your issue --> Had this same issue. Here's helped for me:
Also upgrading to 0.45.1 made everything a lot better in terms of build stability. Doesn't solve the issue though. @steven-tib Downgrade doesn't do for me because of some issue with react-native-maps. Let's see. |
@Nauzer the issue I had (I think) was related to react-native-maps. I was on 0.43 then upgraded to 0.44, maps didn't work so I unlinked and relinked react-native-maps which fixed everything in 0.44, then went to 0.45. Now batchedUpdates 😄 react-dom crashes my app for some reason. Hopefully I can figure it out! |
What kind of error are you getting? I included [email protected] as a dependency of my react-native-meteor fork not directly in my project. BTW, what your experience on RN. Is it always such a pain in the ... or is it just a unlucky moment for me to step in? ;-) Sent from my OnePlus ONEPLUS A3003 using FastHub |
@Nauzer I was (stupidly) using the wrong version of react-dom - completely neglected to see your working branch the branch you linked to! Thanks for providing that! You just stepped in at a lucky time 😄 - this issue just started hitting most people (except OP) in the last few days with the release of RN v0.45 (my email has been inundated with questions about it) Other than that there haven't been many issues (at least from my experience) |
Looks like facebook/react-native@f3dbddc#diff-834d77988fd4294e13e3e35533b3e248L161 While waiting for an update on facebook/react-native#14490, I did the following change in Data.js // Line 1
- import ReactNative from 'react-native';
+ const ReactNative = require('react-native/Libraries/Renderer/src/renderers/native/ReactNative'); Seems like it's working, but may not be the best long term fix. What do you guys think? |
Thanks @edmundkwok I was on this trail yesterday by using ReactNativeStack/ReactNativeFiber - didn't get it to work. Good job! Data.js: // line 1
- import ReactNative from 'react-native';
+import ReactNative from 'react-native/Libraries/Renderer/src/renderers/native/ReactNative' Maybe you want to post your solution to the RN Issue to add some context? |
Thanks @Nauzer! Yes, of course, we should stick to ES6 😉 I have added a comment on facebook/react-native#14490 |
@Nauzer Thanks for your previous help! I have a question that might be kind of dumb, but where should I be adding the change recommended by @edmundkwok to? (I'm very new to coding + react-native in general). |
Hi @wenzelmk
In your project's package.json replace react-native-meteor with the relative path to the directory where you cloned it. I did it in my project's parent folder. -"react-native-meteor": "^1.0.3",
+"react-native-meteor": "../react-native-meteor" remove the node_modules folder
And you should be good to go :) |
Thanks @Nauzer . |
Just ran into this as well. Downgrading to 0.44. Hopefully, I won't run into any issues on that path. |
OK, downgrading to RN 0.44 worked for me. Hopefully, this will get resolved soon. |
I could do a PR for this. @noris666 Any suggestions? |
Or this: |
@Nauzer, I tried using your branch and I'm getting another error, this time for loginWithPassword. (I could start a new issue, but not sure if it's related & issues are disabled on your branch)
|
Switch to 'prop-types' instead of React.PropTypes Fix error 'db.batchUpdates undefined is not a function'. Issue #183
@jasonnathan i cant reproduce. Can you share your code? Sent from my OnePlus ONEPLUS A3003 using FastHub |
Any hope this will get merged into the official repo?
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Nauzer <[email protected]>
Sent: Sunday, July 2, 2017 2:05:42 PM
To: inProgress-team/react-native-meteor
Cc: Ujwal Setlur; Manual
Subject: Re: [inProgress-team/react-native-meteor] Issue to update (#183)
@jasonnathan<https://github.com/jasonnathan> i cant reproduce. Can you share your code?
Sent from my OnePlus ONEPLUS A3003 using FastHub<https://play.google.com/store/apps/details?id=com.fastaccess.github>
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#183 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFkMXT-6cj52cSXJZm10viL4hNDKMNo1ks5sKAYmgaJpZM4LWbak>.
|
Apologies @Nauzer, false alarm! |
@ujwal-setlur It was already nerged. Will be pushed to npm somewhere today. Sent from my OnePlus ONEPLUS A3003 using FastHub |
Awesome!
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Nauzer <[email protected]>
Sent: Sunday, July 2, 2017 11:39:08 PM
To: inProgress-team/react-native-meteor
Cc: Ujwal Setlur; Mention
Subject: Re: [inProgress-team/react-native-meteor] Issue to update (#183)
@ujwal-setlur<https://github.com/ujwal-setlur> It was already nerged. Will be pushed to npm somewhere today.
Sent from my OnePlus ONEPLUS A3003 using FastHub<https://play.google.com/store/apps/details?id=com.fastaccess.github>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#183 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFkMXSGsutyiyaAmCfUjlKSdFE4eihSFks5sKIyMgaJpZM4LWbak>.
|
Merged to version 1.0.5. Closed. Sent from my OnePlus ONEPLUS A3003 using FastHub |
Thanks!
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: Nauzer <[email protected]>
Sent: Tuesday, July 4, 2017 1:36:56 AM
To: inProgress-team/react-native-meteor
Cc: Ujwal Setlur; Mention
Subject: Re: [inProgress-team/react-native-meteor] Issue to update (#183)
Closed #183<#183>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#183 (comment)>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AFkMXdPojGzcKFZ3yRKx1NI-Mk9amhsDks5sKfmogaJpZM4LWbak>.
|
@Nauzer in -import ReactNative from 'react-native/Libraries/Renderer/src/renderers/native/ReactNative';
+import ReactNative from 'react-native/Libraries/Renderer/shims/ReactNative'; I'll send a PR. |
I'm having a issue about this.db.batchedUpdates is not a function inside WriteTransaction.js
And also _.all is not a function
Please help
The text was updated successfully, but these errors were encountered: