mongoose-compound-example-app
mongoose-compound-example-app copied to clipboard
After installing this app, an error occures
I'm running:
npm install mongoose-compound-example-app
cd node_modules/mongoose-compound-example-app/
node .
And the console output of the error is:
user@user-K50IJ:~/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app$ node .
/home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/app/models/cat.js:3
Cat.prototype.sayMeow = function () {
^
TypeError: Cannot read property 'prototype' of undefined
at module.exports (/home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/app/models/cat.js:3:8)
at /home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/node_modules/compound/lib/models.js:36:13
at Array.forEach (native)
at loadModels (/home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/node_modules/compound/lib/models.js:23:38)
at Object.exports.init (/home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/node_modules/compound/lib/models.js:14:5)
at exports.init (/home/user/wwwroot/test/compoundapp11/node_modules/mongoose-compound-example-app/node_modules/compound/lib/compound.js:131:29)
at process.startup.processNextTick.process._tickCallback (node.js:244:9)
Thank you.
Thanks for spotting it, there was an issue related to changes in new events API. Now application source is updated and working fine.