ground-db icon indicating copy to clipboard operation
ground-db copied to clipboard

.observeSource is not a function

Open thijssmudde opened this issue 7 years ago • 3 comments

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");

thijssmudde avatar Aug 23 '17 23:08 thijssmudde

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.

300mice avatar Aug 24 '17 04:08 300mice

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

thijssmudde avatar Aug 24 '17 12:08 thijssmudde

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

lucfranken avatar Dec 14 '17 11:12 lucfranken