Skip to content

Instantly share code, notes, and snippets.

@tanordheim
Created September 23, 2011 19:00
Show Gist options
  • Save tanordheim/1238166 to your computer and use it in GitHub Desktop.
Save tanordheim/1238166 to your computer and use it in GitHub Desktop.
/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/lib/schema.js:203
return new Types[type.name](path, obj);
^
TypeError: undefined is not a function
at CALL_NON_FUNCTION_AS_CONSTRUCTOR (native)
at Function.interpretAsType (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/lib/schema.js:203:10)
at Schema.path (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/lib/schema.js:162:29)
at Schema.add (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/lib/schema.js:110:12)
at new Schema (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/lib/schema.js:38:10)
at MetricCollector.<anonymous> (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/lib/metric_collector.coffee:69:29)
at [object Object].<anonymous> (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/lib/metric_collector.coffee:3:63)
at [object Object].emit (events.js:67:17)
at [object Object].<anonymous> (/Users/Trond/Code/Clients/BinaryMarbles/Sherlock/node_modules/mongoose/node_modules/mongodb/lib/mongodb/connections/server.js:98:12)
at [object Object].emit (events.js:64:17)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment