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

Package extends Meteor.collection.prototype by incorrect monkey-patching (conflicting with meteor-job-collection) #304

Closed
SimonSimCity opened this issue Jan 9, 2019 · 0 comments

Comments

@SimonSimCity
Copy link
Contributor

Strongly related to #246 ...

I tried to install this extension together with the package simonsimcity:job-collection (a fork of the package by vsivsi which is compatible with Meteor 1.6.1+) but got the following error:

The global definition of Mongo.Collection has been patched by another package, and the prototype constructor has been left in an inconsistent state. Please see this link for a workaround: vsivsi/meteor-file-sample-app#2 (comment)

This error is thrown because Mongo.Collection is not equal to Mongo.Collection.prototype.constructor when initializing the job-collection (https://github.com/SimonSimCity/meteor-job-collection/blob/master/packages/job-collection/src/shared.js#L208)

Please also take a look at https://github.com/rclai/meteor-collection-extensions which could provide a more collective way of extending the Mongo.Collection class.

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

1 participant