Meteor-Community-Packages / ground-db

GroundDB is a thin layer providing Meteor offline database and methods
https://atmospherejs.com/ground/db
MIT License
572 stars 77 forks source link

.observeSource is not a function #200

Closed thijssmudde closed 4 weeks ago

thijssmudde commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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

lucfranken commented 6 years ago

The current version on Atmosphere returns ground:db@2.0.0 so this issue seems solved. Tested on Meteor 1.6