connect@0.5.10 breaks express@1.0.7 #535

alfredwesterveld opened this Issue Feb 15, 2011 · 5 comments


None yet
3 participants

connect@0.5.10 breaks express@1.0.7 for me on node v0.4.0

var express    = require('express'), app = express.createServer();

app.get('*', function (req, res) {
    res.send('Hello World!');

app.listen(3333, 'localhost');

          throw e; // process.nextTick error, or 'error' event on first tick
Error: Cannot find module 'connect/middleware/router'
      at Function._resolveFilename (module.js:289:11)
      at Function._load (module.js:241:25)
      at require (module.js:317:19)
      at Object.<anonymous> (/home/alfred/local/lib/node/.npm/nvm/0.0.6/package/v0.4.0/lib/node/.npm/express/1.0.0/package/lib/express/server.js:17:14)
      at Module._compile (module.js:373:26)
      at Object..js (module.js:379:10)
      at Module.load (module.js:305:31)
      at Function._load (module.js:271:10)
      at require (module.js:317:19)
      at Object.<anonymous> (/home/alfred/local/lib/node/.npm/nvm/0.0.6/package/v0.4.0/lib/node/.npm/express/1.0.0/package/lib/express/index.js:28:31)

p.s: when I download visionmedia-express-1.0.0-204-gb65b063.tar.gz and do npm link it does work again. But from the npm register it fails for me. My operating system is Ubuntu 10.10 btw.


tj commented Feb 15, 2011

hmm looks like npm was trying to load 1.0.0, the require is now router = require('connect').router, fixing the require namespace issue. that being said 1.x wont work (very well) with 0.4.x, master 2.0.0-pre will be designed for this

Thanks :). So when will this new version be available in npm?


tj commented Feb 16, 2011

no deadline really, whenever I am done :)

express@1.0.7 works fine for me with connect@0.5.7 and node 0.4.1

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment