What versions of packages work for you?
drnic opened this issue · 2 comments
I created a package.json to install all the packages that are required:
{
"name": "nodechat"
, "version": "0.1.0"
, "private": true
, "dependencies": {
"underscore": ">= 1.1.7"
,"winston": ">= 0"
,"joose": ">= 0"
,"joosex-namespace-depended": ">= 0"
,"backbone": ">= 0"
,"hash": ">= 0"
,"redis": ">= 0"
,"connect": ">= 0"
,"connect-redis": ">= 0"
,"jade": ">= 0"
,"stylus": ">= 0"
}
}
When I install and run the server I get an error and I'm wondering - what versions of all the above packages work for you and don't give this error?
$ npm install && node server.js
connect-redis@1.0.6 ./node_modules/connect-redis
info - socket.io started
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot read property 'session' of undefined
at new <anonymous> (/Users/drnic/Projects/node_apps/nodechat/node_modules/connect-redis/lib/connect-redis.js:33:22)
at Object.<anonymous> (/Users/drnic/Projects/node_apps/nodechat/server.js:52:34)
at Module._compile (module.js:402:26)
at Object..js (module.js:408:10)
at Module.load (module.js:334:31)
at Function._load (module.js:293:12)
at Array.<anonymous> (module.js:421:10)
at EventEmitter._tickCallback (node.js:126:26)
drnic, this is what npm ls shows right now. I am guessing your issue is that you have Socket.IO 0.7. I need to update nodechat to work with the latest version of Socket.IO. I am on vacation this week, but I will get to it as soon as I can.
├─┬ backbone@0.3.3
│ └── underscore@1.1.6
├─┬ connect@1.4.1
│ ├── mime@1.2.2
│ └── qs@0.1.0
├── connect-redis@1.0.4
├─┬ express@2.3.9
│ ├── connect@1.4.1
│ ├── mime@1.2.2
│ └── qs@0.1.0
├── hash@0.06.0
├── jade@0.10.7
├── joose@3.18.0
├─┬ joosex-namespace-depended@0.16.0
│ ├── joose@3.18.0
│ ├─┬ joosex-meta-lazy@0.3.2
│ │ └── joose@3.18.0
│ └─┬ joosex-simplerequest@0.2.2
│ └── joose@3.18.0
├── redis@0.6.0
├── socket.io@0.6.17
├─┬ stylus@0.12.2
│ ├── cssom@0.2.0
│ └── growl@1.1.0
├── underscore@1.1.6
└─┬ winston@0.2.7
├── colors@0.5.0
├── eyes@0.1.6
├─┬ loggly@0.3.2
│ └── request@1.9.5
└─┬ vows@0.5.8
└── eyes@0.1.6
Fantastic, thanks for that.
Resulting package.json
{
"name": "nodechat"
, "version": "0.1.0"
, "private": true
, "dependencies": {
"backbone": "0.3.3"
,"connect": "1.4.1"
,"connect-redis": "1.0.4"
,"express": "2.3.9"
,"hash": "0.06.0"
,"jade": "0.10.7"
,"joose": "3.18.0"
,"joosex-namespace-depended": "0.16.0"
,"redis": "0.6.0"
,"socket.io": "0.6.17"
,"stylus": "0.12.2"
,"underscore": "1.1.6"
,"winston": "0.2.7"
,"colors": "0.5.0"
,"loggly": "0.3.2"
,"vows": "0.5.8"
,"eyes": "0.1.6"
}
}