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

.observeSource is not a function #200

Closed
thijssmudde opened this issue Aug 23, 2017 · 3 comments
Closed

.observeSource is not a function #200

thijssmudde opened this issue Aug 23, 2017 · 3 comments

Comments

@thijssmudde
Copy link

thijssmudde commented Aug 23, 2017

offlineroutes.js:5 Uncaught TypeError: routesoffline.observeSource is not a function

import '/both/collections.js';

var routesoffline = new Ground.Collection('RoutesOffline');

routesoffline.observeSource(Routes.find());

collections.js
Routes = new Mongo.Collection("routes");

@300mice
Copy link

300mice commented Aug 24, 2017

Hi!
If you are still having this issue I think I managed to solve it. I actually encountered it about the same time you posted :D
Now I am no expert in any of this but I think if you downloaded it using
meteor add ground:db
The version on Atmosphere is actually outdated, you need to instead clone the version on Git Hub into your /packages folder and then do the
meteor add ground:db
and it should update to the latest version...
Doing this solved my issue, sorry if it doesn't help.

@thijssmudde
Copy link
Author

Yes that works. I'll leave this open so other people can use your guide. Thanks

@lucfranken
Copy link

The current version on Atmosphere returns ground:[email protected] so this issue seems solved. Tested on Meteor 1.6

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

No branches or pull requests

4 participants