Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After installing this app, an error occures #1

Open
fodor0205 opened this issue Jan 12, 2013 · 1 comment
Open

After installing this app, an error occures #1

fodor0205 opened this issue Jan 12, 2013 · 1 comment

Comments

@fodor0205
Copy link

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
Copy link
Contributor

1602 commented Jan 15, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants