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

Getting mongoose can not recompile error when modifying schema. #35

Closed
mariuskubilius opened this issue Jan 24, 2013 · 1 comment
Closed

Comments

@mariuskubilius
Copy link

/home/emkei/projects/mg/node_modules/mongoose/lib/index.js:272
throw new mongoose.Error.OverwriteModelError(name);
^
OverwriteModelError: Cannot overwrite Resorts model once compiled.
at Mongoose.model (/home/emkei/projects/mg/node_modules/mongoose/lib/index.js:272:13)
at Object. (/home/emkei/projects/mg/app/models/resort.js:16:10)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at /home/emkei/projects/mg/server.js:16:3
at Array.forEach (native)

@madhums
Copy link
Owner

madhums commented Jan 24, 2013

looks more like a mongoose error! Can you check Automattic/mongoose#1251?

@madhums madhums closed this as completed Jan 30, 2013
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