meteor-collection-helpers icon indicating copy to clipboard operation
meteor-collection-helpers copied to clipboard

object.method is not a function

Open Undeadlol1 opened this issue 9 years ago • 1 comments

Here is sample of my code:

      threads() {
        return Threads.find().fetch()
    }

The way i use it:

const threads = Documents.findOne().threads()

This works fine in development, but fails in production Error: n.revision is not a function While investigating documents prototype i found that function name gets minified in production bundle. Development: response : function response() { name: "response" } Production: response : function e() { name: "e" }

Your package is great. But sadly it's not working for me. Any thoughts how to solve it?

Undeadlol1 avatar Jul 10 '16 23:07 Undeadlol1

Hey @Undeadlol1 are you sure that it's a bug with this package? If you can provide a link to a repo with a simple reproduction app I can run I'm happy to take a look

dburles avatar Jul 11 '16 02:07 dburles