I\'m using Webpack to use require modules in the browser; however, I\'m getting the following error:
Uncaught TypeError: mongoose.model is not a function
mongoose.model is server side only. On the client/browser there is no model, because the client/browswer has no database connection. You can use mongoose.Document though, in order to keep schemas DRY/isomorph.
http://mongoosejs.com/docs/unstable/docs/browser.html