Skip to content

Instantly share code, notes, and snippets.

@mappum
Created May 23, 2012 06:29
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mappum/2773542 to your computer and use it in GitHub Desktop.
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'states' of undefined
at EmbeddedDocument.isDirectModified (/home/mappum/aptt/node_modules/mongoose/lib/document.js:673:36)
at EmbeddedDocument.set (/home/mappum/aptt/node_modules/mongoose/lib/document.js:417:17)
at EmbeddedDocument.parent (/home/mappum/aptt/node_modules/mongoose/lib/document.js:993:45)
at EmbeddedDocument.EmbeddedDocument (/home/mappum/aptt/node_modules/mongoose/lib/types/embedded.js:19:15)
at new EmbeddedDocument (/home/mappum/aptt/node_modules/mongoose/lib/schema/documentarray.js:26:17)
at DocumentArray.SchemaArray (/home/mappum/aptt/node_modules/mongoose/lib/schema/array.js:48:19)
at new DocumentArray (/home/mappum/aptt/node_modules/mongoose/lib/schema/documentarray.js:42:13)
at Function.interpretAsType (/home/mappum/aptt/node_modules/mongoose/lib/schema.js:220:14)
at Schema.path (/home/mappum/aptt/node_modules/mongoose/lib/schema.js:185:29)
at Schema.add (/home/mappum/aptt/node_modules/mongoose/lib/schema.js:121:12)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment