Nest: NestMiddleware freezes request

Created on 29 Jul 2018  路  3Comments  路  Source: nestjs/nest

I'm submitting a...


[ ] Regression 
[x] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

When I create NestMiddleware and apply it to consumer it doesn't execute function. Applying just freezes request. But when I apply middleware function it works fine.

Expected behavior

This should work fine? I don't know.

Minimal reproduction of the problem with instructions

Create one app module then create module with routes afterwards create NestMiddleware and apply to AppModule for all routes or one route.

core question 馃檶

Most helpful comment

I had the same problem with a custom installation, can you check for "target": "es6" in tsconfig.json. Hope this helps.

All 3 comments

We need more context (code that reproduces this issue).

I had the same problem with a custom installation, can you check for "target": "es6" in tsconfig.json. Hope this helps.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mishelashala picture mishelashala  路  3Comments

anyx picture anyx  路  3Comments

artaommahe picture artaommahe  路  3Comments

thohoh picture thohoh  路  3Comments

rafal-rudnicki picture rafal-rudnicki  路  3Comments