Skip to content
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

LocalCollection._isModificationMod is not a function #8930

Closed
marcoschwartz opened this issue Jul 20, 2017 · 11 comments
Closed

LocalCollection._isModificationMod is not a function #8930

marcoschwartz opened this issue Jul 20, 2017 · 11 comments

Comments

@marcoschwartz
Copy link

Hello,

I am having this error since I updated my Meteor app a few minutes ago:

TypeError: LocalCollection._isModificationMod is not a function
W20170720-19:37:30.923(2)? (STDERR) at [object Object].MongoConnection._update (packages/mongo/mongo_driver.js:514:36)
W20170720-19:37:30.923(2)? (STDERR) at [object Object]. (packages/meteor.js:212:23)
W20170720-19:37:30.923(2)? (STDERR) at [object Object].MongoConnection.(anonymous function) [as update] (packages/mongo/mongo_driver.js:743:49)
W20170720-19:37:30.924(2)? (STDERR) at [object Object].update (packages/mongo/collection.js:591:29)

I think it comes from an update of npm-mongo, before that there were no issues. Anyone else has the same issue?

@hwillson
Copy link
Contributor

Thanks for reporting this @marcoschwartz. This is a known issue (see cbeba45). We're working on a fix, but for now pinning mongo to 1.1.19 will fix this issue.

@benjamn
Copy link
Contributor

benjamn commented Jul 20, 2017

This should be fixed if you run meteor update mongo, thanks to @hwillson's fix in #8931. Please close the issue if updating mongo works for you!

@steph643
Copy link

meteor update mongo didn't work for me, but meteor add mongo@=1.1.19 did.

@cosmin-novac
Copy link

Can confirm steph643's solution. meteor update mongo didn't work

@hwillson
Copy link
Contributor

Hmm - looks like the most recent mongo version still has the same problem. We have a working patch ready to go, but for some reason it wasn't published. We'll coax the publishing process into cooperating, and get the fixed version out shortly. In the meantime, pinning to 1.1.19 will definitely work. Thanks for your patience!

@rpesciotta
Copy link

Have the same problem here, and meteor add mongo@=1.1.19 indeed solves for me.
Awaiting the final fix.

@nacimgoura
Copy link

I updated mongo in version 1.21 and I have the same problem "LocalCollection._isModificationMod is not a function"

@tab00
Copy link

tab00 commented Jul 21, 2017

I now get this error after making the following updates:

mongo                   upgraded from 1.1.19 to 1.1.21
npm-mongo               upgraded from 2.2.24 to 2.2.30

@abernix
Copy link
Contributor

abernix commented Jul 21, 2017

This was my mistake in publishing npm-mongo@2.2.30 and mongo@1.1.20. Some changes were included from devel in mongo@1.1.20 which were not intended to be released yet (and are currently staged on release-1.5.2). This should be really be fixed if you update to the latest mongo@1.1.22:

meteor update mongo

or

meteor add mongo@1.1.22

Sorry for the troubles! And thanks for reporting the problem. (And thanks to @hwillson for help in fixing!)

@abernix abernix closed this as completed Jul 21, 2017
@hwillson
Copy link
Contributor

Thanks @abernix! This change means Meteor is now using the latest version of the Node mongo driver (which incorporates the stability and performance improvements made over the past 6 versions), so a big 👍!

@runarberg
Copy link
Contributor

@abernix I can confirm. running meteor update mongo fixed this for us.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants