You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 4, 2026. It is now read-only.
I'm new to Mongoose and forked your repro to play around with your model code a bit. It's a nice-sized sample app, and I like the way you partitioned it. Unfortunately, my local copy blew up on start. Here's the output:
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: object is not a function
at EventEmitter.CALL_NON_FUNCTION (native)
at Object. (/Users/georgesn/code/linkr/server.js:3:1)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
Hi Patrick,
I'm new to Mongoose and forked your repro to play around with your model code a bit. It's a nice-sized sample app, and I like the way you partitioned it. Unfortunately, my local copy blew up on start. Here's the output:
linkr $ node --version
v0.6.6
linkr $ node server.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: object is not a function
at EventEmitter.CALL_NON_FUNCTION (native)
at Object. (/Users/georgesn/code/linkr/server.js:3:1)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)
at Function._load (module.js:310:12)
at Array.0 (module.js:470:10)
at EventEmitter._tickCallback (node.js:192:40)
Here's npm ls:
linkr $ npm ls
npm WARN htmlparser@1.7.3 package.json: bugs['web'] should probably be bugs['url']
linkr@0.0.1 /Users/georgesn/code/linkr
├─┬ cluster@0.7.7
│ ├── log@1.2.0
│ └── mkdirp@0.2.1
├─┬ connect-redis@1.2.0
│ └── redis@0.7.1
├── ejs@0.6.1
├─┬ express@2.5.2
│ ├─┬ connect@1.8.3
│ │ └── formidable@1.0.8
│ ├── mime@1.2.4
│ ├── mkdirp@0.0.7
│ └── qs@0.4.0
├── mhash@0.1.4
├─┬ mongoose@2.4.7
│ ├── colors@0.5.1
│ ├── hooks@0.1.9
│ └── mongodb@0.9.7-2-1
└─┬ node.io@0.4.5
├── coffee-script@1.2.0
├── htmlparser@1.7.3
├── jquery@1.6.3
├─┬ jsdom@0.2.10
│ ├── contextify@0.0.7
│ └── cssom@0.2.1
└── request@2.2.9
redis and mongodb are both recent versions and are running and listening to their default ports. Any ideas?