Skip to content

compatibility with Mongo.Collection (simple-schema) #34

Description

@takahser

Hello

I'm using the popular simple-schema package for my collections, therefore I declare my collection as instances of Mongo.Collection

e.g.

Items = new Mongo.Collection('items);

Unfortunately the application crashes when trying to publish

// doesn't work, will throw error
Meteor.FilterCollections.publish(Objects, {
  name: 'people-lite'
});

meteor throws the following error:

/Users/moi/.meteor/packages/meteor-tool/.1.1.3.ik16id++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245
            throw(ex);
                  ^
TypeError: Cannot call method 'publish' of undefined
  at app/server/publications.js:12:26
  at app/server/publications.js:16:3
  at /Users/moi/myproject/.meteor/local/build/programs/server/boot.js:222:10
  at Array.forEach (native)
  at Function._.each._.forEach (/Users/moi/.meteor/packages/meteor-tool/.1.1.3.ik16id++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)
  at /Users/moi/myproject/.meteor/local/build/programs/server/boot.js:117:5

Exited with code: 8
Your application is crashing. Waiting for file change.

is there any way I can still use your package together with simple-form?
thank you

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions