mongo-collection-instances icon indicating copy to clipboard operation
mongo-collection-instances copied to clipboard

Wierd Issue

Open patrickml opened this issue 9 years ago • 5 comments

In production mode this package isnt picking up all of my collections. Most of my collection live in a package lib, because we use the same collections for multiple apps. Any collections imported from a package are not available via.get() or getAll(). If you just run your app locally with --production you can replicate this issue.

patrickml avatar Jan 08 '16 16:01 patrickml

In order to fix the issue I had to add the package as in import on my package. Its odd that this happens only in production, but maybe the docs should be updated to notify users.

patrickml avatar Jan 08 '16 16:01 patrickml

Reopened so my previous comment could be considered

patrickml avatar Jan 08 '16 16:01 patrickml

Seems odd that it was working locally, are you able to reproduce it on an isolated app?

dburles avatar Jan 08 '16 23:01 dburles

@dburles turns out its an issue with collection extensions https://github.com/rclai/meteor-collection-extensions#collectionextensionsaddextensionfn-name-options-

patrickml avatar Jan 08 '16 23:01 patrickml

This package has been recently updated, have you updated it?

Is there any other information you have that may help me see something on my end?

rclai avatar Jan 09 '16 15:01 rclai