mizzao / meteor-sharejs

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

[solution] The package mizzao:sharejs at 0.6.0 is incompatible with Meteor 0.9.0 or later #26

Closed Cortexelus closed 9 years ago

Cortexelus commented 9 years ago

If you do

meteor create docs
cd docs
meteor add mizzao:sharejs

and get this error:

mizzao:sharejs: INCOMPATIBLE WITH METEOR 0.9.0 OR LATER

it means you should clone this package from this github instead.

However, if you do

git clone --recursive https://github.com/mizzao/meteor-sharejs
cd meteor-sharejs/demo
meteor

and get this error:

W20140913-03:54:33.561(-4)? (STDERR) The package mizzao:sharejs at 0.6.0 is incompatible with Meteor 0.9.0 or later. 
W20140913-03:54:33.897(-4)? (STDERR) If a new, compatible version of this package exists, running 'meteor update' should cause you to update.  

try installing it like this instead:

git clone --recursive https://github.com/mizzao/meteor-sharejs
mv meteor-sharejs/demo docs
mkdir docs/packages
mv meteor-sharejs docs/packages/mizzao:sharejs
cd docs
meteor

and it should work.

mizzao commented 9 years ago

This was already mentioned in #24; I will try to fix it soon.

bitspook commented 9 years ago

@mizzao any leads on how to fix this? I could try if you don't have time.

mizzao commented 9 years ago

Yeah, see https://github.com/acreeger/meteor-moment/commit/16711035bbd017a2a81c2949811e86a30eb08a0d for an example.

Basically, you need to load the assets from different filesystem paths depending on whether the package is being used in an app or being published. Right now it works fine in an app but can't be published; the fix is pretty straightforward.

I'm traveling this week, so feel free to take a shot at this.

mizzao commented 9 years ago

I've published 0.6.1 on 64-bit Linux and OS X, and it should be installable directly now.

We don't really depend on a native plugin, but sharejs needs access to some sort of mongodb API when it is running, and we're just tracking the same version as meteor is using.