mizzao / meteor-sharejs

Meteor smart package for transparently adding ShareJS editors to an app
MIT License
225 stars 53 forks source link

Object has no method '_withDb' with Meteor 1.0.4-rc.4 #44

Closed ghost closed 9 years ago

ghost commented 9 years ago

The error comes from this line: https://github.com/mizzao/meteor-sharejs/blob/master/sharejs-base/sharejs-server.coffee#L31

Meteor 1.0.4 now has a Meteor.Collection.prototype.rawDatabase() method. I think this could be the replacement of this?!

mizzao commented 9 years ago

0.7.2 release now supports Meteor 1.0.4.

By the way, it was MongoInternals.defaultRemoteCollectionDriver().mongo.db.

EDIT: problem publishing via https://forums.meteor.com/t/trying-to-publish-for-arch-in-meteor-1-0-4-malformed-source-tarball/1369. 0.7.2 will be installable when that is resolved.

mizzao commented 9 years ago

This should be now fixed in 0.7.3 without any of the binary bullcrap.

ghost commented 9 years ago

I get

While checking for mizzao:sharejs@0.7.3:
   error: No compatible build found

on Mac OS X. So I guess the build-for-arch is still necessary.

mizzao commented 9 years ago

I think this is an error (meteor/meteor#3952) but either that or meteor/meteor#3951 needs to be fixed before we can proceed.

mizzao commented 9 years ago

0.7.3 should be installable now.

BioMechanico commented 9 years ago

It looks like this is still an error in mizzao:sharejs-ace. Thanks for the great packages!

ghost commented 9 years ago

@BioMechanico You need to fix the version to 0.7.3 with this in .meteor/packages mizzao:sharejs@0.7.3.

@mizzao mizzao:sharejs-ace still depends on an older version of mizzao:sharejs. I think with the new dependency resolver in Meteor it will use the latest version automatically.

mizzao commented 9 years ago

@Sanjo is right, just add mizzao:sharejs@0.7.3 manually for now, and in the future it should be pulled in automatically.

BioMechanico commented 9 years ago

That worked. Thanks @Sanjo and @mizzao for your help!