angular-express-seed
angular-express-seed copied to clipboard
Update middleware "errorhandler" to the Express 4.x new style
Replace the old middleware "error-handler" by the new one "errorhandler"
Now the command line node app.js just work like a charm !
I also add a simple .gitignore file to exclude "node_modules" folder : I guess is best for a seed Node.js project
Can confirm both the issue and this fix.
Cloned seed, ran npm install and node app.js returned:
Error: Most middleware (like errorHandler) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
at Function.Object.defineProperty.get (/home/melo/projects/experiments/web/ang-exp-btford-example/node_modules/express/lib/express.js:89:13)
at Object.<anonymous> (/home/melo/projects/experiments/web/ang-exp-btford-example/app.js:36:19)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
Applied moriame's patches to package.json and app.js, ran npm install again and after that node app.js starts without issues. Thanks @moriame !
That's right. The latest commit have not get change the app.use(errorHandler());
I get this error as well, any chance of a fix?
Had the same problem. The proposed solution works like a charm. Thanks for it! Please merge this pull request.
Thanks for this! Still an issue as not yet merged, but straightforward to make the change manually.
Thanks, fixed it for me too! Should be merged into master.
Please merge ... Fix is needed :+1: