I'm trying to use dts-gen for express but getting the Error below.
I really just want to extend the express.request.session interface.
Thanks!
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
$ ./../../node_modules/.bin/dts-gen -m express
Unexpected crash! Please log a bug with the commandline you specified.
/***/***/***/***/***/node_modules/dts-gen/bin/lib/run.js:130
throw e;
^
Error: Most middleware (like bodyParser) is no longer bundled with Express and must be installed separately. Please see https://github.com/senchalabs/connect#middleware.
at Function.get (/***/***/***/***/***/node_modules/express/lib/express.js:108:13)
at getResult (/***/***/***/***/***/node_modules/dts-gen/bin/lib/index.js:148:47)
at getTopLevelDeclarations (/***/***/***/***/***/node_modules/dts-gen/bin/lib/index.js:123:17)
at Object.generateModuleDeclarationFile (/***/***/***/***/***/node_modules/dts-gen/bin/lib/index.js:49:19)
at Object.<anonymous> (/***/***/***/***/***/node_modules/dts-gen/bin/lib/run.js:57:24)
at Module._compile (module.js:660:30)
at Object.Module._extensions..js (module.js:671:10)
at Module.load (module.js:573:32)
at tryModuleLoad (module.js:513:12)
at Function.Module._load (module.js:505:3)
I'm trying to use dts-gen for express but getting the Error below.
I really just want to extend the express.request.session interface.
Thanks!
my package.json dependencies:
to reproduce: