issue_owner_repo
listlengths
2
2
issue_body
stringlengths
0
262k
issue_title
stringlengths
1
1.02k
issue_comments_url
stringlengths
53
116
issue_comments_count
int64
0
2.49k
issue_created_at
stringdate
1999-03-17 02:06:42
2025-06-23 11:41:49
issue_updated_at
stringdate
2000-02-10 06:43:57
2025-06-23 11:43:00
issue_html_url
stringlengths
34
97
issue_github_id
int64
132
3.17B
issue_number
int64
1
215k
[ "nestjs", "nest" ]
Hi, WebSocketGateway has port config. Does WebSocketGateway has server ip config? I want to subscribe another server emitter but I don't know how to do it. Thanks for the help.
WebSocketGateway Subscription
https://api.github.com/repos/nestjs/nest/issues/177/comments
3
2017-10-03T10:05:27Z
2019-09-25T10:11:24Z
https://github.com/nestjs/nest/issues/177
262,371,433
177
[ "nestjs", "nest" ]
Hi, I have two components that need to talk to each other, to avoid the circular dependency issue, I'm using ```this.moduleRef.get``` on both components to access the instance methods. When doing unit test with ```@nestjs/testing``` after creating the module and declare both components, the DI doesn't works: S...
Dependency injection inside Unit testing
https://api.github.com/repos/nestjs/nest/issues/176/comments
5
2017-10-01T11:18:22Z
2019-09-24T09:11:33Z
https://github.com/nestjs/nest/issues/176
261,909,110
176
[ "nestjs", "nest" ]
Hi, I followed the examples as best I could from the documentation, but no matter what I change I get this error: `No repository for "User" was found. Looks like this entity is not registered in current "default" connection?` My `database.providers.ts` file looks like this ```import {createConnection} from '...
Cannot get typeorm and mysql working
https://api.github.com/repos/nestjs/nest/issues/175/comments
5
2017-10-01T03:04:45Z
2019-09-24T01:10:35Z
https://github.com/nestjs/nest/issues/175
261,887,993
175
[ "nestjs", "nest" ]
Hi, I'm using version 4.0.1 and am having trouble writing a response transformation interceptor. The interceptor is hit in debug but the response body is the same as without it. controller (I'm using global interceptors): ``` @Get() async getVersionInformation(@Response() res) { const info = await thi...
Interceptor response mapping
https://api.github.com/repos/nestjs/nest/issues/174/comments
2
2017-09-29T13:43:55Z
2019-09-25T10:11:50Z
https://github.com/nestjs/nest/issues/174
261,646,688
174
[ "nestjs", "nest" ]
Hi, How to access current http context inside component method? As an example i would like to access current session user inside "typeorm" EventSubscriber class to automatically set user who inserted/update/deleted record. Thanks for nice framework!
How to access current http context inside component method
https://api.github.com/repos/nestjs/nest/issues/173/comments
43
2017-09-29T07:24:54Z
2020-02-10T18:25:58Z
https://github.com/nestjs/nest/issues/173
261,553,480
173
[ "nestjs", "nest" ]
Hi, Thanks for your NestJS, it is really nice and clean. So, Do we have any example for Microservices with EventSourcing? Thanks.
Microservices sample
https://api.github.com/repos/nestjs/nest/issues/172/comments
3
2017-09-28T16:33:29Z
2019-09-25T07:10:41Z
https://github.com/nestjs/nest/issues/172
261,383,610
172
[ "nestjs", "nest" ]
Hi, I've got a problem. I'm using class-validator and creating my custom constraint like this: ```typescript @Component() @ValidatorConstraint({ async: true }) export class IsTakenConstraint implements ValidatorConstraintInterface { constructor( @Inject(UserRepositoryToken) private readonly userRep...
Can't resolve dependency of component (validator constraint)
https://api.github.com/repos/nestjs/nest/issues/171/comments
6
2017-09-28T14:10:31Z
2019-09-25T10:11:47Z
https://github.com/nestjs/nest/issues/171
261,332,855
171
[ "nestjs", "nest" ]
The framework already serializes responses as JSON objects (even instances of classes). Wouldn't it make sense to use `app.use(bodyParser.json());` by default?
Use bodyParser by default
https://api.github.com/repos/nestjs/nest/issues/170/comments
2
2017-09-28T13:02:14Z
2019-09-25T10:11:56Z
https://github.com/nestjs/nest/issues/170
261,310,218
170
[ "nestjs", "nest" ]
I'm trying to create a global guard but it doesn't seem to work.
Are there any examples for global guards usage?
https://api.github.com/repos/nestjs/nest/issues/169/comments
6
2017-09-27T06:53:58Z
2019-09-25T05:10:59Z
https://github.com/nestjs/nest/issues/169
260,865,568
169
[ "nestjs", "nest" ]
Example: ```throw new Error('Boom');``` All I get for response is the following: ``` { "statusCode": 500, "message": "Internal server error" } ``` - What if i want to print the stack trace too in the above response while in development? - How would I do that? In express we have this ``` app....
How to customise Nest default error handler?
https://api.github.com/repos/nestjs/nest/issues/168/comments
4
2017-09-26T13:50:10Z
2019-09-24T22:11:17Z
https://github.com/nestjs/nest/issues/168
260,630,873
168
[ "nestjs", "nest" ]
The URLs bellow are used on left-bottom-menu on https://docs.nestjs.com, but your click redirect to home page. https://docs.nestjs.com/recipes/passport https://docs.nestjs.com/recipes/cqrs https://docs.nestjs.com/recipes/mongodb https://docs.nestjs.com/recipes/graphql https://docs.nestjs.com/recipes/swagger
[DOCS] Recipes pages redirect to home page
https://api.github.com/repos/nestjs/nest/issues/167/comments
2
2017-09-25T21:10:21Z
2019-09-25T10:11:59Z
https://github.com/nestjs/nest/issues/167
260,416,217
167
[ "nestjs", "nest" ]
I'd like to use dependency injection in `pipe`s, `filter`s and global `guard`s as well. Usecase: business validation with AOP, separated to the business logic For example: The `UserAdminController` receives a `UserCreateCommand`, which I can validate it with the `class-validator` in a `pipe` so it has to be filled ...
Feature request: dependency injection everywhere
https://api.github.com/repos/nestjs/nest/issues/166/comments
8
2017-09-24T10:30:17Z
2019-09-25T07:11:29Z
https://github.com/nestjs/nest/issues/166
260,074,242
166
[ "nestjs", "nest" ]
CORS Demo?
https://api.github.com/repos/nestjs/nest/issues/165/comments
11
2017-09-23T01:23:27Z
2019-09-25T04:11:41Z
https://github.com/nestjs/nest/issues/165
259,972,589
165
[ "nestjs", "nest" ]
So when running from the /dist folder, using the default instructions/code I got this error: ``` No repository for "Region" was found. Looks like this entity is not registered in current "default" connection? ``` Region is my entity, and it worked fine running with nodemon. Looking through the TypeOrm docs, I n...
TypeOrm Recipe fails when running after tsc transpilation (start:prod)
https://api.github.com/repos/nestjs/nest/issues/164/comments
4
2017-09-22T03:47:30Z
2019-09-25T11:10:35Z
https://github.com/nestjs/nest/issues/164
259,695,123
164
[ "nestjs", "nest" ]
Currently, if you specify a component to be injected, it only injects it for the current module, and any module that relies on the exported component. This is useful, but it's slightly different than the dependency injection model used by Angular. In angular, injecting a dependency at a top level module injects that de...
Allow dependency injection to apply to sub modules
https://api.github.com/repos/nestjs/nest/issues/163/comments
2
2017-09-21T23:04:48Z
2019-09-25T11:10:38Z
https://github.com/nestjs/nest/issues/163
259,657,763
163
[ "nestjs", "nest" ]
Hi! The way of defining routes via decorators in controllers directly is fine, but sometimes it's quite useful to have an external config with routes. It has a variety of advantages and config could look something like: ``` export const AppRoutes = [ { path: 'prefix', children: [ ...
Define routes in an external config
https://api.github.com/repos/nestjs/nest/issues/161/comments
4
2017-09-20T09:37:39Z
2019-09-25T11:10:41Z
https://github.com/nestjs/nest/issues/161
259,101,118
161
[ "nestjs", "nest" ]
Is there any way to create a custom cli command
https://api.github.com/repos/nestjs/nest/issues/160/comments
11
2017-09-18T10:26:04Z
2019-09-25T08:11:50Z
https://github.com/nestjs/nest/issues/160
258,431,853
160
[ "nestjs", "nest" ]
I want to trasfrom all response , like classToPlain to expose or exclude some field instead of JSON.stringify.
how to apply a global Interceptor
https://api.github.com/repos/nestjs/nest/issues/159/comments
14
2017-09-18T07:44:44Z
2019-09-25T11:10:50Z
https://github.com/nestjs/nest/issues/159
258,392,962
159
[ "nestjs", "nest" ]
Below: "Now it's time to finish the ValidationPipe class.", in function `async transform` in file `validation.pipe.ts` there is `return value;` it should't be `return object;`?
Bug in doc about pipes?
https://api.github.com/repos/nestjs/nest/issues/158/comments
2
2017-09-18T07:21:20Z
2019-09-25T11:10:47Z
https://github.com/nestjs/nest/issues/158
258,388,678
158
[ "nestjs", "nest" ]
is there a way to specify that Params and Query be injected as a number instead of a string? ```js @Get("validate/:code?") codes(@Param("code") code : number) { return ValidationService.validate(number); // error: currently gets passed as a string } ``` I know I can use `parseInt(code)` but i am wondering if ...
parse params and
https://api.github.com/repos/nestjs/nest/issues/157/comments
7
2017-09-16T19:55:28Z
2019-09-24T03:11:15Z
https://github.com/nestjs/nest/issues/157
258,254,734
157
[ "nestjs", "nest" ]
why not?
@nest/cli
https://api.github.com/repos/nestjs/nest/issues/156/comments
13
2017-09-16T12:34:46Z
2019-09-25T10:11:32Z
https://github.com/nestjs/nest/issues/156
258,228,988
156
[ "nestjs", "nest" ]
Output from console when trying to implement a single gateway. An empty gateway does the same output, works fine without the gateway. Am I missing something? ```[Nest] 3271 - 2017-9-15 21:33:19 [NestFactory] Starting Nest application... [Nest] 3271 - 2017-9-15 21:33:19 [InstanceLoader] ApplicationModule de...
Issue running app with gateway.
https://api.github.com/repos/nestjs/nest/issues/155/comments
3
2017-09-15T20:47:34Z
2019-09-25T11:10:59Z
https://github.com/nestjs/nest/issues/155
258,159,986
155
[ "nestjs", "nest" ]
```bash ╭─cojack@cojack-desktop ~/Projects/private/nest/examples/01-cats-app ‹master*› ╰─$ npm start > nest-typescript-starter@1.0.0 start /home/cojack/Projects/private/nest/examples/01-cats-app > node index.js [Nest] 28918 - 9/14/2017, 11:10:29 AM [NestFactory] Starting Nest application... [Nest] 2891...
Console output doesn't show for which URL controllers are mapped for.
https://api.github.com/repos/nestjs/nest/issues/153/comments
6
2017-09-14T09:18:22Z
2019-09-25T09:11:57Z
https://github.com/nestjs/nest/issues/153
257,649,954
153
[ "nestjs", "nest" ]
Steps 1) git clone ... 2) cd /nest/examples/01-cats-app 3) npm i 4) npm start 5) Observe bunch of compilations errors Versions OS: Linux Mint 18.2 npm - 5.3.0 node - 8.4.0
Cannot run latest test examples from master (cat-app)
https://api.github.com/repos/nestjs/nest/issues/151/comments
6
2017-09-13T12:12:04Z
2019-09-25T11:11:05Z
https://github.com/nestjs/nest/issues/151
257,357,748
151
[ "nestjs", "nest" ]
This code does not preserve `this` binding for websocket adapter instances. ``` const disconnectHook = adapter.bindClientDisconnect; disconnectHook && disconnectHook(client, client => disconnect.next(client)); ```
`bindClientDisconnect` is not binded to websocket adapter instance
https://api.github.com/repos/nestjs/nest/issues/150/comments
2
2017-09-11T21:02:04Z
2019-09-25T12:10:39Z
https://github.com/nestjs/nest/issues/150
256,841,139
150
[ "nestjs", "nest" ]
The site with the documentation stopped working. http://docs.nestjs.com
Documentation issues
https://api.github.com/repos/nestjs/nest/issues/149/comments
8
2017-09-11T14:30:09Z
2019-11-12T12:56:13Z
https://github.com/nestjs/nest/issues/149
256,723,440
149
[ "nestjs", "nest" ]
There appears to be memory leak when using gateways that implement `OnGatewayConnection` or `OnGatewayDisconnect`. The problem is due to `handleConnection` and `handleDisconnect` being added as subscribers *each time a client connects via ws*, rather than just once up-front.
Memory leak when using websockets and OnGatewayConnection or OnGatewayDisconnect
https://api.github.com/repos/nestjs/nest/issues/147/comments
2
2017-09-10T07:32:50Z
2019-09-25T12:10:36Z
https://github.com/nestjs/nest/issues/147
256,491,579
147
[ "nestjs", "nest" ]
It would be useful to have the ability to re-export modules. Much like in Angular, you might want to create shared modules so you won't have the same imports in multiple modules.
Add ability to re-export modules
https://api.github.com/repos/nestjs/nest/issues/146/comments
2
2017-09-08T04:10:37Z
2019-09-25T11:11:56Z
https://github.com/nestjs/nest/issues/146
256,135,816
146
[ "nestjs", "nest" ]
I'd love to be able to use standard try…catch around `next()` in middleware in the way that [Koa](https://github.com/koajs/koa) does it. In my opinion this is more elegant than Nest's current middleware + exception filter combination. I'm currently writing some middleware that wraps controllers in a database transac...
Support try…catch around next() in middleware
https://api.github.com/repos/nestjs/nest/issues/145/comments
2
2017-09-07T12:25:31Z
2019-09-25T11:10:44Z
https://github.com/nestjs/nest/issues/145
255,919,140
145
[ "nestjs", "nest" ]
Hi, Thank you for your amazing work. I just have a question. Is it possible to do exception filters that are module-scoped ? If not, there is some kind of limitations that make this impossible ? Best regards
Exception filters module-scoped
https://api.github.com/repos/nestjs/nest/issues/144/comments
2
2017-09-04T20:23:40Z
2019-09-25T11:11:53Z
https://github.com/nestjs/nest/issues/144
255,112,588
144
[ "nestjs", "nest" ]
Hullo 👋 Currently if you want to bind your express instance to a specific IP you end up with something like this: ```typescript @Module({}) class ApplicationModule {}x function createApp ( server: express.Application, port: number, address: string ): Promise<INestApplication> { const app = Ne...
Binding IP for a nest application is verbose
https://api.github.com/repos/nestjs/nest/issues/143/comments
8
2017-08-31T11:09:40Z
2019-09-25T10:11:54Z
https://github.com/nestjs/nest/issues/143
254,298,434
143
[ "nestjs", "nest" ]
Here is a use-case: 1) I have ```typescript @Controller('users') class UsersController ... ``` 2) Then I have a separate router that handles specific users information, like ```typescript @Controller('users/products') class ProductsController ... ``` Same applies to URL REST versioning when you need to ...
[Feature, Question] Is it possible to create a controllers' hierarchy? (Similar to using Route in express)
https://api.github.com/repos/nestjs/nest/issues/142/comments
12
2017-08-28T13:50:51Z
2019-09-24T00:11:29Z
https://github.com/nestjs/nest/issues/142
253,335,306
142
[ "nestjs", "nest" ]
Is there a plan to support apidoc? eg: https://github.com/thiagobustamante/typescript-rest-swagger
[Feature] Swagger support?
https://api.github.com/repos/nestjs/nest/issues/141/comments
3
2017-08-24T06:02:20Z
2019-09-25T11:11:50Z
https://github.com/nestjs/nest/issues/141
252,495,744
141
[ "nestjs", "nest" ]
Want to implement one, but the only way to access Request, Response - via middlewares, which are outside of the controller. Is it possible using the current (3.x) version of Nest? ```typescript import { Controller, Get, Post, HttpStatus } from '@nestjs/common'; @Controller() export class UsersController { ...
[Feature, Question] Method level @Cache annotation
https://api.github.com/repos/nestjs/nest/issues/140/comments
5
2017-08-23T11:01:59Z
2019-09-24T02:11:05Z
https://github.com/nestjs/nest/issues/140
252,242,627
140
[ "nestjs", "nest" ]
I see the document. And `Nest` use `Component` to describe `Service`. Why not just use `Service`
Why 'Component' is not named 'Service'?
https://api.github.com/repos/nestjs/nest/issues/139/comments
3
2017-08-22T09:33:05Z
2019-09-25T11:11:47Z
https://github.com/nestjs/nest/issues/139
251,895,179
139
[ "nestjs", "nest" ]
Add request methods HEAD, OPTIONS
https://api.github.com/repos/nestjs/nest/issues/138/comments
10
2017-08-20T16:45:26Z
2019-09-24T23:11:56Z
https://github.com/nestjs/nest/issues/138
251,500,098
138
[ "nestjs", "nest" ]
server.ts import { NestFactory } from '@nestjs/core'; import { ApplicationModule } from './modules/app.module'; import { RabbitMQServer } from './modules/rabbit.service'; const app = NestFactory.create(ApplicationModule, { strategy: new RabbitMQServer('amqp://guest:guest@103.36.17...
TypeError: this.express.use is not a function
https://api.github.com/repos/nestjs/nest/issues/136/comments
1
2017-08-20T05:04:27Z
2019-09-25T12:10:51Z
https://github.com/nestjs/nest/issues/136
251,466,890
136
[ "nestjs", "nest" ]
Is it possible to use `middleware` function for all routes? In [express.js](https://expressjs.com/) you can quickly achieve this by applying function to the application's use method: ``` javascript app.use(function (req, res, next) { // do whatever you like next(); }); ```
Apply middleware to all routes
https://api.github.com/repos/nestjs/nest/issues/135/comments
12
2017-08-18T07:08:13Z
2019-09-24T11:11:06Z
https://github.com/nestjs/nest/issues/135
251,158,409
135
[ "nestjs", "nest" ]
Hi, I have a simple WebSocketGateway: ```ts import { WebSocketGateway, SubscribeMessage } from '@nestjs/websockets'; @WebSocketGateway({ port: 3001, namespace: 'ws' }) export class TestGateway { @SubscribeMessage('channel-1') onMessage(client, data) { client.emit('channel-1', data); } } ``` ...
Question about WebSocketGateway class - Emit to channel from external component
https://api.github.com/repos/nestjs/nest/issues/134/comments
5
2017-08-15T11:52:27Z
2019-11-26T23:56:37Z
https://github.com/nestjs/nest/issues/134
250,293,790
134
[ "nestjs", "nest" ]
Hello, I have been programming in .NET for a long time. I love everything about nodejs but I've noticed that something is missing. There is a type of events that I have only seen in the aspx template engine (asp.net), this engine allows something called DirectEvents, [DirectEvents](https://www.packtpub.com/mapt/book/...
Implementation of DirectEvents or similar
https://api.github.com/repos/nestjs/nest/issues/133/comments
4
2017-08-14T02:22:43Z
2019-09-25T11:11:44Z
https://github.com/nestjs/nest/issues/133
249,917,819
133
[ "nestjs", "nest" ]
Hello, I'm using Nest with Pug (Jade) I want to know if there's any seed / boilerplate for server side rendering (SSR), something for Angular, React or Vue. Thanks!
[Question] Any seed for SSR?
https://api.github.com/repos/nestjs/nest/issues/132/comments
7
2017-08-13T23:25:32Z
2019-09-25T11:11:41Z
https://github.com/nestjs/nest/issues/132
249,906,043
132
[ "nestjs", "nest" ]
I need to create **global** expection filter object (`ApplicationExceptionFilter`) that **depends** on the `Logger` component that is part of the `ApplicationModule` **Application module:** ``` typescript @Module({ components: [ Logger ] }) export default class ApplicationModule { } ``` **Logg...
[Question] Exception filter object with dependencies
https://api.github.com/repos/nestjs/nest/issues/131/comments
6
2017-08-13T14:44:41Z
2019-09-23T15:11:11Z
https://github.com/nestjs/nest/issues/131
249,877,963
131
[ "nestjs", "nest" ]
Hi, I really love the concept this framework is taking, I am curious if you plan to implement more advanced features. When I say advanced features I am talking about features that are existing in a framework like Laravel. For example, caching email sending, template engine, throttling, configuration per environme...
Any plans for implementing advrnced features
https://api.github.com/repos/nestjs/nest/issues/130/comments
9
2017-08-10T20:55:37Z
2019-09-25T05:11:32Z
https://github.com/nestjs/nest/issues/130
249,473,674
130
[ "nestjs", "nest" ]
We've been trying pipes to validate inputs as doc explains and it works fairly well with post requests, but it doesn't seems to work for every typical crud verbs. It would be nice to use the same kind of component for validation in every place. Currently using: common: "version": "3.0.0" core: "version": "3.0.1"...
Trigger Pipes with GET requests too
https://api.github.com/repos/nestjs/nest/issues/129/comments
2
2017-08-10T06:01:06Z
2019-09-25T11:11:38Z
https://github.com/nestjs/nest/issues/129
249,241,224
129
[ "nestjs", "nest" ]
It would be really awesome if we could choose to expose our applications over both HTTP, TCP, or both without code modifications. This would be ideal as you could still expose your application to end users over HTTP, but also to backend consumers over TCP. The .NET framework [ServiceStack](https://github.com/ServiceSta...
Unifiy application and microservice architectures
https://api.github.com/repos/nestjs/nest/issues/128/comments
3
2017-08-08T23:56:43Z
2019-09-25T11:11:10Z
https://github.com/nestjs/nest/issues/128
248,879,904
128
[ "nestjs", "nest" ]
Hello everyone, I'm testing NestJs (very nice job!), specially microservice section and I've found that every time the client sends a message to failing / disconnected microservice, this throws an error that it seems not catcheable on the client (at least, I've tried surrounding with try / catch the method this.clie...
Catch microservice connection error from API gateway
https://api.github.com/repos/nestjs/nest/issues/127/comments
4
2017-08-08T10:22:17Z
2019-09-25T08:12:03Z
https://github.com/nestjs/nest/issues/127
248,668,621
127
[ "nestjs", "nest" ]
Hi there! Is there any way to make an equivalent to this classic configuration in nest? ``` var app = express() , server = require('http').createServer(app) , io = io.listen(server); server.listen(3000); ``` My application has only one gateway and I would like it to use the same port as the main exp...
Any way to make the gateway listen the same port as the application?
https://api.github.com/repos/nestjs/nest/issues/126/comments
13
2017-08-01T22:08:42Z
2019-09-25T09:12:00Z
https://github.com/nestjs/nest/issues/126
247,216,834
126
[ "nestjs", "nest" ]
I've got a below project structure where each resource has a module. I tried adding middlewares to `configure` function to each module but I get an error. Is this not possible? ``` -- root ---- app.module.ts ---- [project] ------ project.module.ts ---- [user] ------ user.module.ts ``` If I setup middleware...
Not possible to configure middlewares in multiple modules?
https://api.github.com/repos/nestjs/nest/issues/125/comments
2
2017-08-01T17:00:28Z
2019-09-25T12:10:54Z
https://github.com/nestjs/nest/issues/125
247,136,250
125
[ "nestjs", "nest" ]
Hi guys. Just discovered this framework today and it's awesome, really like that it allows me to follow the same structure and setup as angular on the back end. Can't wait to get into the meat of doing something with it. Got a question though regarding routing. From what I can see from the docs, the only way to add ...
Adding routes dynamically
https://api.github.com/repos/nestjs/nest/issues/124/comments
5
2017-07-29T08:09:53Z
2019-09-25T11:11:35Z
https://github.com/nestjs/nest/issues/124
246,507,594
124
[ "nestjs", "nest" ]
I think is a great idea to remove responses inside controllers and use REST patterns to manage response status code, for example, POST should return 201 status code, GET should return 200.
REST Patterns
https://api.github.com/repos/nestjs/nest/issues/122/comments
10
2017-07-25T17:15:34Z
2019-09-25T11:11:08Z
https://github.com/nestjs/nest/issues/122
245,472,550
122
[ "nestjs", "nest" ]
Currently, there is no way to configure the initialization options of a socketIO server. You have to create an adapter and bind handlers which seems like a lot of work when you there could be a way to do this possibly in the WebSocketGateway decorator? If not there, possibly the WebSocketServer decorator. Something to ...
WebSocket init options for SocketIO
https://api.github.com/repos/nestjs/nest/issues/121/comments
3
2017-07-24T20:37:42Z
2019-09-25T02:11:05Z
https://github.com/nestjs/nest/issues/121
245,201,772
121
[ "nestjs", "nest" ]
Hello! **tl;dr** > how do I create a global middleware for `nest` that applies nuxt middleware hey guys I've been working on [nuxt](https://nuxtjs.org) integration and you can see [in this repo](https://github.com/AngelMunoz/nesting-nuxt) how's the stuff going, however I'm facing a little bit of an issue, I can ca...
nuxt integration
https://api.github.com/repos/nestjs/nest/issues/119/comments
5
2017-07-21T22:40:26Z
2019-09-24T19:12:00Z
https://github.com/nestjs/nest/issues/119
244,799,615
119
[ "nestjs", "nest" ]
I tried to run project that i made serveral days ago, i cleanup node_modules and yarn.lock, re-install and see error: Error: Cannot find module '@nestjs/core/guards/constants' ``` Error: Cannot find module '@nestjs/core/guards/constants' at Function.Module._resolveFilename (module.js:469:15) at Function.M...
Error: Cannot find module '@nestjs/core/guards/constants'
https://api.github.com/repos/nestjs/nest/issues/118/comments
5
2017-07-21T12:28:16Z
2019-09-25T11:11:32Z
https://github.com/nestjs/nest/issues/118
244,654,162
118
[ "nestjs", "nest" ]
The following links redirect to kamilmysliwiec.gitbooks.io/* instead of docs.nestjs.com/* ![image](https://user-images.githubusercontent.com/5701162/28454931-4bffc126-6dfd-11e7-93ce-9cabb848e18b.png) Additionally, where are the docs src to send PR?
Docs: links redirect to another domain
https://api.github.com/repos/nestjs/nest/issues/117/comments
2
2017-07-21T08:34:18Z
2019-09-25T11:11:29Z
https://github.com/nestjs/nest/issues/117
244,600,701
117
[ "nestjs", "nest" ]
I've just thought that microservice is only required if you use microservices... Why `core` depends on `microservice`?
Why @nestjs/core requires a peerDependency of @nestjs/microservice?
https://api.github.com/repos/nestjs/nest/issues/116/comments
8
2017-07-21T08:10:18Z
2019-09-25T10:10:39Z
https://github.com/nestjs/nest/issues/116
244,594,994
116
[ "nestjs", "nest" ]
I need to use pug in my projects, and i have this problem: ``` renderRecibo = (req, res, next) =>{ try{ var options = { format: 'A4' }; let html = pug.renderFile("../../views/recibo.pug" ``` If i use only Node, works, but in Nest no. In main file of Nest, i have: ``` app.set('views', pa...
Use Pug in Nest
https://api.github.com/repos/nestjs/nest/issues/115/comments
7
2017-07-20T12:10:04Z
2019-09-25T12:10:57Z
https://github.com/nestjs/nest/issues/115
244,339,382
115
[ "nestjs", "nest" ]
https://docs.nestjs.com/quick-start/first-controller.html > In previuos section we set up It should read: > In the previous section we set up I looked around for somewhere to open a PR, but couldn't find it here nor on gitbook.com
Typo in the docs
https://api.github.com/repos/nestjs/nest/issues/114/comments
4
2017-07-17T23:16:49Z
2019-09-25T11:11:26Z
https://github.com/nestjs/nest/issues/114
243,555,350
114
[ "nestjs", "nest" ]
Is there a way to start the Nest application with SSL cert options so I can have a HTTPS server? For now I manually call the init() function on the Nest app and start the HTTPS server with express app manually. ``` let options = { key: fs.readFileSync(Config.SSL_KEY_PATH), cert: fs.readFileSync(Config....
How do you set up SSL?
https://api.github.com/repos/nestjs/nest/issues/113/comments
6
2017-07-15T19:06:12Z
2019-09-23T17:11:50Z
https://github.com/nestjs/nest/issues/113
243,193,915
113
[ "nestjs", "nest" ]
I am getting this error on `@nestjs/core@5.0.3` NOT `@5.0.1` ``` [Nest] 10519 - 2017-7-15 11:53:19 [ExceptionHandler] Cannot read property 'resolve' of null TypeError: Cannot read property 'resolve' of null at Function.setupHandler (/home/bbayard/github.com/teamtwofer/dinosaurinspector/node_modules/@nestjs/...
Middleware consumer throws error
https://api.github.com/repos/nestjs/nest/issues/112/comments
5
2017-07-15T18:56:56Z
2019-09-25T12:11:00Z
https://github.com/nestjs/nest/issues/112
243,193,409
112
[ "nestjs", "nest" ]
Hello everyone, I am new to this Framework and got the following problem: I am using TypeORM to connect to the database which is running as a service and gets injected into all components/controllers where it is needed - everything is running fine. Now I tried to implement passport with a local strategy: I wa...
Access express from ApplicationModule or inject own service into ApplicationModule
https://api.github.com/repos/nestjs/nest/issues/110/comments
9
2017-07-12T10:54:05Z
2019-09-25T11:10:53Z
https://github.com/nestjs/nest/issues/110
242,338,846
110
[ "nestjs", "nest" ]
Followed the instructions on the main page. $ git clone https://github.com/kamilmysliwiec/nest-typescript-starter.git project $ cd project $ npm install $ npm run start This runs into an error with the message "The package rxjs@5.4.2 does not satisfy its siblings' peerDependencies requirements!"
Following the installation instructions runs into an error with rxjs peerDependencies requirements.
https://api.github.com/repos/nestjs/nest/issues/109/comments
10
2017-07-11T19:50:23Z
2019-09-25T12:11:15Z
https://github.com/nestjs/nest/issues/109
242,163,507
109
[ "nestjs", "nest" ]
I think this is urgent problem @kamilmysliwiec , how to reproduce? ```typescript import {Component, Logger} from '@nestjs/common'; import {OnModuleInit} from '@nestjs/common/interfaces/modules'; @Component() export default class TestComponent implements OnModuleInit { private flag = false; private logger =...
onModuleInit change the scope
https://api.github.com/repos/nestjs/nest/issues/108/comments
5
2017-07-11T08:44:00Z
2019-09-25T10:10:35Z
https://github.com/nestjs/nest/issues/108
241,970,821
108
[ "nestjs", "nest" ]
Is there a way to create a module for use in a cli script? Just doing a bit of digging around and it seems that the only way to create a Nest app is w/ Express. I'm looking for something like the `createTestingModule` where I can pass it a module and it handles all the dependencies w/out firing up a server. This fra...
Create Module for CLI Usage
https://api.github.com/repos/nestjs/nest/issues/107/comments
3
2017-07-10T21:25:47Z
2019-09-25T12:11:18Z
https://github.com/nestjs/nest/issues/107
241,855,683
107
[ "nestjs", "nest" ]
I have a code of a custom NestMiddleware and I was trying to throw an exception: ``` @Middleware() export class MultipartMiddleware implements NestMiddleware { constructor(private multipartReader: MultipartReader) {} resolve(): (req, res, next) => void { return async(req, res, next) => { this.m...
Nest Middleware doesn't properly throws HttpException on the backend
https://api.github.com/repos/nestjs/nest/issues/106/comments
3
2017-07-10T05:50:42Z
2019-09-25T12:11:06Z
https://github.com/nestjs/nest/issues/106
241,606,280
106
[ "nestjs", "nest" ]
Hi, i run the simple commands ``` git clone ... cd project npm install npm run start ``` but that doesn't work My configuration: ``` windows 8.1 npm 5.1.0 node 6.11.0 ``` The error trace ``` > nest-typescript-starter@1.0.0 start C:\Users\VanIllaSkyPE\Documents\devoirs\we b developer\En cours\...
ossible to start the demo project
https://api.github.com/repos/nestjs/nest/issues/105/comments
4
2017-07-09T14:47:56Z
2019-09-25T12:11:09Z
https://github.com/nestjs/nest/issues/105
241,529,553
105
[ "nestjs", "nest" ]
I have some conversation in [nest-typeorm-example here](https://github.com/zachgrayio/nest-typeorm-example/issues/2) about the issue. Basically nest throwing connection error if the code try connecting to DB before the first call is resolved. I made work-around but I think I need more solid resolution.
TypeOrm throwing transaction error when seeding
https://api.github.com/repos/nestjs/nest/issues/103/comments
5
2017-07-08T07:28:31Z
2019-09-25T11:11:23Z
https://github.com/nestjs/nest/issues/103
241,433,091
103
[ "nestjs", "nest" ]
We have some problem with TypeScript 2.4 and his backward compatibility. This is what I have now with typescript 2.4.1: ``` cojack:nest-test/ (develop*) $ npm start ...
TypeScript 2.4 Argument of type 'typeof AppModule' is not assignable to parameter of type 'NestModuleMetatype'.
https://api.github.com/repos/nestjs/nest/issues/102/comments
7
2017-07-07T15:18:56Z
2019-09-25T11:11:20Z
https://github.com/nestjs/nest/issues/102
241,296,412
102
[ "nestjs", "nest" ]
Can someone tell me what's the lowest version of the node engine ver requirement? When I look at the http://node.green it looks like the 6.11.0 might be enough. But 7.10.0 looks more promising (because of async/await features). So there are any suggestion? Btw maybe it's time to add in **package.json**: ```json ...
Node engine version requirement
https://api.github.com/repos/nestjs/nest/issues/101/comments
8
2017-07-07T11:02:58Z
2019-09-25T10:10:41Z
https://github.com/nestjs/nest/issues/101
241,231,236
101
[ "nestjs", "nest" ]
I have a question about the use of middleware in ES2015. Typescript accepts interfaces but javascript does not, what can be done about it? This in ES2015 cannot be done, what would be the correct syntax? For example in the documentation this: ````typescript import { Middleware, NestMiddleware } from '@nestjs/co...
Middleware in ES2015
https://api.github.com/repos/nestjs/nest/issues/99/comments
3
2017-06-25T21:49:57Z
2019-09-25T12:11:21Z
https://github.com/nestjs/nest/issues/99
238,409,076
99
[ "nestjs", "nest" ]
Route params decorators not working properly in ES I'm trying to use @Body decorator, but I'm getting unwanted results: ```js @Post('/signup') async signUp ( @Request() req, @Response() res, @Body('username') username, @Body('password') password ) { console.log(username) //[Functio...
Route params decorators bug in ES
https://api.github.com/repos/nestjs/nest/issues/97/comments
16
2017-06-24T15:20:52Z
2019-09-23T15:10:54Z
https://github.com/nestjs/nest/issues/97
238,323,293
97
[ "nestjs", "nest" ]
When @Middleware throw exception, my own @UserFilters doesnt catch the error, ExceptionsHandler is throw the error.
@UseFilters() dont work in middleware
https://api.github.com/repos/nestjs/nest/issues/95/comments
5
2017-06-23T09:01:26Z
2019-09-25T12:11:27Z
https://github.com/nestjs/nest/issues/95
238,082,490
95
[ "nestjs", "nest" ]
Its posible add my own decorator after @Get decorator? Because when I do this res seems to be not linked with express response ```typescript @Get() @Decorator() public async getAll( @Res() res: Response) { res.status(HttpStatus.OK).send(); ``` Update: Watching [this](https://github.com/kamilmysli...
Add decorator after @Get
https://api.github.com/repos/nestjs/nest/issues/94/comments
19
2017-06-23T08:42:22Z
2019-09-25T12:10:48Z
https://github.com/nestjs/nest/issues/94
238,077,992
94
[ "nestjs", "nest" ]
I would like to open discuss about logger, so far we have an Logger service in `@nest/common`, as it might be enough for development purpose, now it's kind of "thorn" fe: there is no other possibility to turn off messages from nest instead of set `NestEnvironment.RUN` to `TEST`, but it might imply some other things now...
Logger service improvements.
https://api.github.com/repos/nestjs/nest/issues/93/comments
6
2017-06-15T06:28:32Z
2019-09-25T09:10:51Z
https://github.com/nestjs/nest/issues/93
236,089,568
93
[ "nestjs", "nest" ]
Same case as for http - validate input params )
Pipes for ws and rpc calls
https://api.github.com/repos/nestjs/nest/issues/92/comments
5
2017-06-14T10:12:35Z
2019-09-25T11:11:17Z
https://github.com/nestjs/nest/issues/92
235,829,678
92
[ "nestjs", "nest" ]
Two services: `auth` and `thirdparty-vk`. I want to login user from `thirdparty` service via `auth` service RPC method with mesage pattern `LOGIN`. `auth` server handler ```ts @MessagePattern(AUTH_RPC_CONFIG.actions.login) public login(userId: number): Observable<IAuthLoginResponse> { return this.authSer...
RPC request error `There is no equivalent message pattern`
https://api.github.com/repos/nestjs/nest/issues/91/comments
2
2017-06-13T12:59:27Z
2019-09-25T12:11:30Z
https://github.com/nestjs/nest/issues/91
235,545,517
91
[ "nestjs", "nest" ]
App crashes after body-parser install: Mon, 12 Jun 2017 22:02:40 GMT body-parser deprecated bodyParser: use individual json/urlencoded middlewares at node_modules/express/lib/router/layer.js:95:5 Mon, 12 Jun 2017 22:02:40 GMT express deprecated req.host: Use req.hostname instead at node_modules/body-parser/index.js...
body-parser (version 1.17.2) issue
https://api.github.com/repos/nestjs/nest/issues/90/comments
7
2017-06-12T22:05:28Z
2019-09-25T03:11:59Z
https://github.com/nestjs/nest/issues/90
235,379,570
90
[ "nestjs", "nest" ]
It would be awesome if `NestMiddleware` could support ```typescript export interface NestMiddleware { resolve(...args: any[]): Promise<Express.RequestHandler> | Express.RequestHandler; } ``` by checking to see if they are returning a promise and awaiting them.
NestMiddleware support asynchronous methods
https://api.github.com/repos/nestjs/nest/issues/89/comments
8
2017-06-05T17:35:40Z
2019-09-25T11:11:14Z
https://github.com/nestjs/nest/issues/89
233,658,062
89
[ "nestjs", "nest" ]
Is there a reason why middleware parameters have to be serialized? Is there alternative way to pass in a mysql connection object, for example? https://github.com/kamilmysliwiec/nest/blob/master/src/common/utils/bind-resolve-values.util.ts#L11 ``` TypeError: Converting circular structure to JSON at JSON.stri...
Converting circular structure to json
https://api.github.com/repos/nestjs/nest/issues/88/comments
2
2017-06-05T17:27:38Z
2019-09-25T12:11:33Z
https://github.com/nestjs/nest/issues/88
233,656,198
88
[ "nestjs", "nest" ]
Hi everyone, I've published the recent version of the framework. Now, **Nest** has almost every feature, which I planned to introduce. Pipes filled the gap, between middlewares and route handlers, observable-based microservices looks better and allows to send multiple messages, ws adapters & custom transport strategie...
Popularity & promotion
https://api.github.com/repos/nestjs/nest/issues/87/comments
13
2017-06-04T11:39:24Z
2019-09-25T08:11:54Z
https://github.com/nestjs/nest/issues/87
233,428,232
87
[ "nestjs", "nest" ]
There is a case when microservice should get/request some configuration (or load initial data from db to memory storage) from separate config service before his servers( http/rpc/ws) will be launched. Would be cool to have an opportunity to delay `nest` servers launch providing some function that returns Observable. T...
Add configuration phase before http/rpc/ws servers launched
https://api.github.com/repos/nestjs/nest/issues/86/comments
18
2017-06-02T14:38:38Z
2019-09-25T06:10:50Z
https://github.com/nestjs/nest/issues/86
233,203,686
86
[ "nestjs", "nest" ]
For proper response error typings `client.send()` should support 2 generics - for success and error response (with default any) ```ts this.client.send<IUser, IRequestResponse>(pattern, data) // `error.message` will be autocompleted due to known typings instead of any .do(null, error => console.log(error.message...
Add response error type support for `client.send()` method
https://api.github.com/repos/nestjs/nest/issues/85/comments
2
2017-06-02T14:00:37Z
2019-09-25T12:11:24Z
https://github.com/nestjs/nest/issues/85
233,192,388
85
[ "nestjs", "nest" ]
There is many cases when RPC client need to subscribe to RPC server data changes. Looks like currently used `json-socket` lib supports this case via streaming. So we need `nest` proxy-methods to use it https://github.com/sebastianseilund/node-json-socket#streaming-example
Add RPC streaming support
https://api.github.com/repos/nestjs/nest/issues/84/comments
3
2017-06-02T13:12:11Z
2019-09-25T12:11:48Z
https://github.com/nestjs/nest/issues/84
233,178,826
84
[ "nestjs", "nest" ]
```ts @MessagePattern('test') public test(): void { const error = { message: 'error' }; const result = undefined; respond(error, result); } ``` This will respond as success and `{ message: 'error' }` data instead of error in client Observable. Looks like this check is incorrect. https://...
Microservice TCP server does not respond with error
https://api.github.com/repos/nestjs/nest/issues/83/comments
2
2017-05-31T13:34:28Z
2019-09-25T12:11:45Z
https://github.com/nestjs/nest/issues/83
232,567,387
83
[ "nestjs", "nest" ]
Looking forward to use it in production... When's the release date? 😸
Production Release
https://api.github.com/repos/nestjs/nest/issues/82/comments
2
2017-05-27T11:05:51Z
2019-09-25T12:11:39Z
https://github.com/nestjs/nest/issues/82
231,794,414
82
[ "nestjs", "nest" ]
It would be good if nestjs could support different typescript configurations. Right now using noImplicitAny option in my project generates errors.
Typescript noImplicitAny compatibility
https://api.github.com/repos/nestjs/nest/issues/81/comments
7
2017-05-26T21:57:46Z
2019-09-25T08:11:56Z
https://github.com/nestjs/nest/issues/81
231,743,527
81
[ "nestjs", "nest" ]
Hi 😄 I updated my application to using nest v2.1.0, unfortunately compilation failing with error: ```bash node_modules/@nestjs/core/nest-application.d.ts(4,22): error TS2420: Class 'NestApplication' incorrectly implements interface 'INestApplication'. Types of property 'connectMicroservice' are incompatible...
Error: Class 'NestApplication' incorrectly implements interface 'INestApplication'.
https://api.github.com/repos/nestjs/nest/issues/79/comments
3
2017-05-23T19:22:49Z
2019-09-25T12:11:54Z
https://github.com/nestjs/nest/issues/79
230,816,333
79
[ "nestjs", "nest" ]
Is there any way to create a component per request? (like CastleWindsor: https://github.com/castleproject/Windsor/blob/master/docs/lifestyles.md )
Component per request - Dependency injection
https://api.github.com/repos/nestjs/nest/issues/77/comments
3
2017-05-22T22:46:06Z
2019-09-25T04:11:20Z
https://github.com/nestjs/nest/issues/77
230,540,110
77
[ "nestjs", "nest" ]
I'm trying to test microservice and his client controller ```ts // client @Controller() export class EnvironmentRpcClientController { @Client({ transport: Transport.TCP, port: ENVIRONMENT_APP_CONFIG.rpcPort }) private client: ClientProxy; public get<T extends Object>(moduleName?: string): Observable<...
Testing Microservice client and `Cannot read property 'send' of null`
https://api.github.com/repos/nestjs/nest/issues/76/comments
14
2017-05-22T22:43:34Z
2019-09-25T11:11:03Z
https://github.com/nestjs/nest/issues/76
230,539,677
76
[ "nestjs", "nest" ]
Can anyone provide an example of how they've managed to run testing using nest? I don't really understand the setup involved in getting a test runner to work, to run the tests I create
Example for running Tests
https://api.github.com/repos/nestjs/nest/issues/75/comments
22
2017-05-19T11:16:10Z
2019-09-25T04:11:23Z
https://github.com/nestjs/nest/issues/75
229,944,997
75
[ "nestjs", "nest" ]
Hi guys. I've found a bizarre bug (or maybe not :D ) I you are testing a component with JEST using @nest/testing helper and use HttpException from '@nestjs/core' JEST tests fail when the component is created with the error above. So, steps to reproduce: 1. create nest component 2. add a method that throws Ht...
[BUG] Cannot find module 'socket.io-client/package' from 'index.js' when testing with JEST
https://api.github.com/repos/nestjs/nest/issues/74/comments
4
2017-05-19T10:15:40Z
2019-09-25T13:10:41Z
https://github.com/nestjs/nest/issues/74
229,931,835
74
[ "nestjs", "nest" ]
Hi, I found a bug regarding the application of middleware using the object notation. I got the following code here: ```typescript export class UserModule { public configure(consumer: MiddlewaresConsumer): void { consumer.apply(JwtAuthenticationStrategy).forRoutes(UserController); consumer.apply(U...
[Bug] Middleware forRoutes object.method: 'POST' only accepts numeric values
https://api.github.com/repos/nestjs/nest/issues/73/comments
3
2017-05-19T09:44:49Z
2019-09-25T13:10:45Z
https://github.com/nestjs/nest/issues/73
229,924,066
73
[ "nestjs", "nest" ]
Hi, I have a question regarding the new module structure. Is it intended that the **HttpException** class is part of the **nestjs/core** instead of the **nestjs/common** package? This seems a bit odd to me as I expect the HttpException to be part of the common package.
[Question] HttpException part of core package
https://api.github.com/repos/nestjs/nest/issues/72/comments
4
2017-05-19T08:28:22Z
2019-09-25T12:11:12Z
https://github.com/nestjs/nest/issues/72
229,905,222
72
[ "nestjs", "nest" ]
I noticed during some development that Middleware does not work for controllers that do not specify the base controller route in the Controller decorator. Please see this branch in my repository for reproduction: https://github.com/jevenson/nest-testing/tree/bug-report If you hit `/working`, you'll get a message ...
Middleware not being hit for controllers that don't specify route in Controller decorator
https://api.github.com/repos/nestjs/nest/issues/71/comments
4
2017-05-18T23:55:42Z
2019-09-25T12:12:00Z
https://github.com/nestjs/nest/issues/71
229,835,403
71
[ "nestjs", "nest" ]
Hey ! I don't know how to test Nest api routes with supertest. Someone already try this ?
How to test Nest with supertest ?
https://api.github.com/repos/nestjs/nest/issues/70/comments
4
2017-05-18T18:18:11Z
2019-09-25T13:10:35Z
https://github.com/nestjs/nest/issues/70
229,761,605
70
[ "nestjs", "nest" ]
How would you guys go about to validation/filtering layer?
Validation/Filtering layer.
https://api.github.com/repos/nestjs/nest/issues/69/comments
10
2017-05-18T12:06:01Z
2019-09-25T12:10:42Z
https://github.com/nestjs/nest/issues/69
229,646,786
69
[ "nestjs", "nest" ]
[Lerna](https://github.com/lerna/lerna) is meant to make easy the maintenance and publishing of monorepo multipackage projects (like this one). Not sure how you @kamilmysliwiec currently do releases, but probably this can help a lot. It could go even smoother using [Lerna Semantic Release](https://github.com/atla...
[Suggestion] Consider using lerna
https://api.github.com/repos/nestjs/nest/issues/68/comments
8
2017-05-16T22:28:45Z
2019-09-25T10:10:50Z
https://github.com/nestjs/nest/issues/68
229,187,179
68
[ "nestjs", "nest" ]
Hi. How would you guys go about to integrate swagger with nest.js?
Swagger integration
https://api.github.com/repos/nestjs/nest/issues/67/comments
29
2017-05-16T09:58:13Z
2019-09-23T23:11:26Z
https://github.com/nestjs/nest/issues/67
228,976,966
67
[ "nestjs", "nest" ]
``` const upload = multer ({ dest: path}) I have: router.post('/uploadUserImage', upload.any(), api.uploadUserImage); ``` How i convert this in Nest ??
Multer and Nest
https://api.github.com/repos/nestjs/nest/issues/66/comments
4
2017-05-15T19:12:46Z
2019-09-25T03:11:17Z
https://github.com/nestjs/nest/issues/66
228,814,457
66
[ "nestjs", "nest" ]
What is everyone using for their development environment? Has anyone successfully gotten interactive server-side debugging working with Nest or TypeScript-compiled tools?
Community question: Development environment
https://api.github.com/repos/nestjs/nest/issues/65/comments
7
2017-05-15T18:51:44Z
2019-09-25T06:10:59Z
https://github.com/nestjs/nest/issues/65
228,808,961
65
[ "nestjs", "nest" ]
1. RPC client cant be defined in service 2. Controller (with defined RPC client) cannot be injected in service to call RCP actions via controller methods 3. Controller cant be RPC client without defining `@RequestMapping()` on some method (try to remove method with `@RequestMapping` from controller and in controller ...
No way to use RPC client from service
https://api.github.com/repos/nestjs/nest/issues/63/comments
10
2017-05-14T02:01:39Z
2019-09-25T12:11:36Z
https://github.com/nestjs/nest/issues/63
228,512,502
63