Meteor-Community-Packages / ground-db

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

"Uncaught TypeError: Ground.Collection is not a constructor" on 1.3.2.4 (did not test below) #169

Closed dagatsoin closed 8 years ago

dagatsoin commented 8 years ago

Hi @raix

it seams that something is broken. I try to use it with the last meteor RC release. I have just created a project and replace the main.js content by:

import Ground from 'meteor/ground:db';

const foo = new Ground.Collection('foo');

and chrome throw an error:

Uncaught TypeError: Ground.Collection is not a constructor
dagatsoin commented 8 years ago

false alert

came commented 8 years ago

I am having the same error. How did you solve it? Thx

came commented 8 years ago

ok, I just had to import {Ground} from 'meteor/ground:db'; instead of import Ground from 'meteor/ground:db';