I have seen similar title in this forum, but the case looks not so similar. So I'm filing another one here.--My code is simply like this:var Cat = mongoose.model('Cat', { name: String });Then I got an error with context like this:./node_modules/mongoose/lib/index.js:305if (!this.modelSchemas[name]) {^TypeError: Cannot read property 'Issue' of undefinedI tried to console log the "this" context in the method Mongoose.prototype.model, which shows an empty object.It seems for whatever reason, the Mongoose prototype cannot access it's constructor contents.Curious enough, it was working until I added "marked" into my package.json.Is it about npm or JavaScript, or it is me?
Documentation - http://mongoosejs.com/
Plugins - http://plugins.mongoosejs.com/
Bug Reports - http://github.com/learnboost/mongoose
Production Examples - http://mongoosejs.tumblr.com/
StackOverflow - http://stackoverflow.com/questions/tagged/mongoose
Google Groups - https://groups.google.com/forum/?fromgroups#!forum/mongoose-orm
Twitter - https://twitter.com/mongoosejs
IRC - #mongoosejs
---
You received this message because you are subscribed to the Google Groups "Mongoose Node.JS ODM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongoose-orm...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.