anatoliychakkaev / mongoose-compound-example-app

Example application CompoundJS+mongoose
16 stars 3 forks source link

After installing this app, an error occures #1

Open fodor0205 opened 11 years ago

fodor0205 commented 11 years ago

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.

1602 commented 11 years ago

Thanks for spotting it, there was an issue related to changes in new events API. Now application source is updated and working fine.