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"
] |
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[x ] Bug report
[ ] Feature request
[ ] Documentation issue or ... | error TS7019: Rest parameter 'args' implicitly has an 'any[]' type | https://api.github.com/repos/nestjs/nest/issues/299/comments | 15 | 2017-12-10T15:55:33Z | 2019-09-24T20:10:41Z | https://github.com/nestjs/nest/issues/299 | 280,819,870 | 299 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | [Question or Feature Request] 404 error handling or sendFile on non existed route | https://api.github.com/repos/nestjs/nest/issues/298/comments | 18 | 2017-12-10T13:34:14Z | 2019-09-25T08:10:42Z | https://github.com/nestjs/nest/issues/298 | 280,809,554 | 298 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | DISCUSSION: rename modules to imports | https://api.github.com/repos/nestjs/nest/issues/296/comments | 6 | 2017-12-09T18:20:04Z | 2019-09-25T07:11:38Z | https://github.com/nestjs/nest/issues/296 | 280,741,757 | 296 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | E2E Test: server.close is not a function | https://api.github.com/repos/nestjs/nest/issues/295/comments | 6 | 2017-12-08T15:06:52Z | 2019-09-25T01:10:53Z | https://github.com/nestjs/nest/issues/295 | 280,518,045 | 295 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[x] Bug report
[ ] Feature request
[ ] Documentation issue or reque... | Impossible to handle middleware error by controler/method scoped by exception filter (only in global) | https://api.github.com/repos/nestjs/nest/issues/294/comments | 3 | 2017-12-08T13:21:06Z | 2019-09-25T08:11:36Z | https://github.com/nestjs/nest/issues/294 | 280,487,605 | 294 |
[
"nestjs",
"nest"
] | I'm studying and researching this framework, and it's architecture generates many questions, for example
**#166 Why pipe is not a component**
I have another one:
Why middlewares are configured in modules?
Why not decorator?
```
@Controller('/cat')
@UseGuards(RolesGuard)
@UseInterceptors(TransformInterceptor)
@... | Architecture Question: Middleware as decorator | https://api.github.com/repos/nestjs/nest/issues/293/comments | 3 | 2017-12-07T19:21:55Z | 2019-09-25T08:11:47Z | https://github.com/nestjs/nest/issues/293 | 280,247,626 | 293 |
[
"nestjs",
"nest"
] | I'v just cloned and fired the injectior example from master branch
it works, but when I started to play with it, I got strange error
in the `feature.service.ts`
https://github.com/nestjs/nest/blob/master/examples/04-injector/src/modules/feature/feature.service.ts
```typescript
@Component()
export class FeatureS... | 04-injector example - strange behavior | https://api.github.com/repos/nestjs/nest/issues/292/comments | 2 | 2017-12-07T17:37:35Z | 2019-09-25T08:11:45Z | https://github.com/nestjs/nest/issues/292 | 280,216,890 | 292 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a bug or doc issue
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following option... | RPC: Thrown Exceptions are reported as errors wrapped in success | https://api.github.com/repos/nestjs/nest/issues/290/comments | 15 | 2017-12-07T10:54:02Z | 2019-09-25T06:11:20Z | https://github.com/nestjs/nest/issues/290 | 280,085,090 | 290 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ ] Bug report
[ ] Feature request
[x ] Documentation issue or requ... | Websockets Example | https://api.github.com/repos/nestjs/nest/issues/289/comments | 3 | 2017-12-06T13:29:11Z | 2019-09-25T08:11:42Z | https://github.com/nestjs/nest/issues/289 | 279,752,855 | 289 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[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.
</code... | Cannot catch ECONNREFUSED for microservice | https://api.github.com/repos/nestjs/nest/issues/288/comments | 6 | 2017-12-06T03:24:22Z | 2019-09-24T00:11:23Z | https://github.com/nestjs/nest/issues/288 | 279,613,259 | 288 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[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.
</cod... | NestJS seems to fail silently | https://api.github.com/repos/nestjs/nest/issues/287/comments | 13 | 2017-12-05T17:29:40Z | 2019-09-24T13:11:15Z | https://github.com/nestjs/nest/issues/287 | 279,462,712 | 287 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | Some core and common functionality fails without other packages installed | https://api.github.com/repos/nestjs/nest/issues/286/comments | 7 | 2017-12-03T02:00:40Z | 2019-09-25T08:11:21Z | https://github.com/nestjs/nest/issues/286 | 278,736,484 | 286 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[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.
</code... | Sequelize-Typescript issues in Starter and Example07 | https://api.github.com/repos/nestjs/nest/issues/285/comments | 7 | 2017-12-02T15:23:31Z | 2019-09-23T15:11:20Z | https://github.com/nestjs/nest/issues/285 | 278,691,798 | 285 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
[x] Feature request
## Current behavior
When registering middlewares via `consumer.apply(middleware).....` they'll run always before the controller handler.
## Expected behavior
Ability to run middleware after the route handler.
## Environment
`Nest version: 4.4.2`
## What is ... | [Feature or Question] Run middleware after route handler | https://api.github.com/repos/nestjs/nest/issues/284/comments | 9 | 2017-12-01T23:13:44Z | 2019-09-23T16:10:45Z | https://github.com/nestjs/nest/issues/284 | 278,624,395 | 284 |
[
"nestjs",
"nest"
] | We Should Have access to `NestContainer` from `NestFactory`
### Why ?
to have the ability to make 3rd party modules, middlewares, ..etc
to be explicit I need access to the container to get its modules and then I could Refactor or edit them
anyway I could Make a PR , but I need your Opinion
| [DISCUSSION] Access To NestContainer | https://api.github.com/repos/nestjs/nest/issues/282/comments | 9 | 2017-12-01T14:30:53Z | 2019-09-25T08:10:48Z | https://github.com/nestjs/nest/issues/282 | 278,483,287 | 282 |
[
"nestjs",
"nest"
] | Hi,
Since the update to 4.3.x I receive 413 errors when posting large form datasets, regardless of which body-parser library i use.
Original
app.use(bodyParser.json({limit: '50mb'}));
app.use(bodyParser.urlencoded({ extended: true }));
New
app.use(express.json({limit: '50mb'}));
app.use(exp... | express 4.16 bodyparser options not applied | https://api.github.com/repos/nestjs/nest/issues/281/comments | 5 | 2017-12-01T12:46:24Z | 2019-09-25T08:11:12Z | https://github.com/nestjs/nest/issues/281 | 278,455,923 | 281 |
[
"nestjs",
"nest"
] | Cannot add pipes to headers decorator now.
It's very useful.
| [SUGGESTION] Let Headers decorators accepts pipes | https://api.github.com/repos/nestjs/nest/issues/279/comments | 7 | 2017-12-01T08:43:54Z | 2020-03-22T09:09:07Z | https://github.com/nestjs/nest/issues/279 | 278,395,321 | 279 |
[
"nestjs",
"nest"
] | I use [apex/up](https://github.com/apex/up) for deployment, it would deploy the application into aws with a url like `https://xxx.amazonaws.com/development/` under up's built-in reverse proxy.
The problem is, when i visit the api of nest application, it would redirect to root path from sub-path with status 301, like... | deploy under sub-path | https://api.github.com/repos/nestjs/nest/issues/277/comments | 4 | 2017-11-30T01:27:37Z | 2019-09-25T08:11:38Z | https://github.com/nestjs/nest/issues/277 | 277,967,045 | 277 |
[
"nestjs",
"nest"
] | ## I'm submitting a question / documentation / education request...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ ] Bug report
[ ] Feat... | Possible to access underlying express instance from within application context? | https://api.github.com/repos/nestjs/nest/issues/276/comments | 8 | 2017-11-30T00:21:14Z | 2019-09-25T08:12:00Z | https://github.com/nestjs/nest/issues/276 | 277,955,707 | 276 |
[
"nestjs",
"nest"
] | First, great job on this project!
We are in the middle of a proof of concept using nestjs and we are wondering if anyone is sharing code/libraries on the front and back end?
We are building a pretty intense workflow engine that runs offline as well as on the server and we don't want to repeat ourselves. Bas... | Share Libraries with front end, Angular or Aurelia? | https://api.github.com/repos/nestjs/nest/issues/275/comments | 6 | 2017-11-28T17:05:45Z | 2019-09-25T06:10:47Z | https://github.com/nestjs/nest/issues/275 | 277,462,921 | 275 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | Love CQRS, Need testing documentation | https://api.github.com/repos/nestjs/nest/issues/274/comments | 5 | 2017-11-28T04:29:52Z | 2019-09-25T08:11:15Z | https://github.com/nestjs/nest/issues/274 | 277,255,136 | 274 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | [Question] Best approach to inject Services to Decorators | https://api.github.com/repos/nestjs/nest/issues/273/comments | 10 | 2017-11-25T20:49:57Z | 2019-09-25T09:10:39Z | https://github.com/nestjs/nest/issues/273 | 276,776,880 | 273 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ 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.
</co... | Multiple @WebSocketGateway ends up with `Error during WebSocket handshake` | https://api.github.com/repos/nestjs/nest/issues/271/comments | 17 | 2017-11-25T13:23:13Z | 2019-09-25T08:11:00Z | https://github.com/nestjs/nest/issues/271 | 276,750,260 | 271 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | Gateway with controller as dependency | https://api.github.com/repos/nestjs/nest/issues/270/comments | 8 | 2017-11-25T05:45:02Z | 2019-09-25T07:11:47Z | https://github.com/nestjs/nest/issues/270 | 276,727,953 | 270 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | Authorize decorator. | https://api.github.com/repos/nestjs/nest/issues/269/comments | 20 | 2017-11-24T19:05:05Z | 2019-09-24T05:10:59Z | https://github.com/nestjs/nest/issues/269 | 276,684,922 | 269 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | Multiple custom route param not work! | https://api.github.com/repos/nestjs/nest/issues/268/comments | 3 | 2017-11-24T09:17:14Z | 2019-09-25T09:10:42Z | https://github.com/nestjs/nest/issues/268 | 276,556,017 | 268 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[x] Bug report
[x] Feature request
[ ] Documentation issue or reque... | Register middleware for routes with parameters | https://api.github.com/repos/nestjs/nest/issues/267/comments | 5 | 2017-11-23T16:20:33Z | 2019-09-25T07:11:14Z | https://github.com/nestjs/nest/issues/267 | 276,427,246 | 267 |
[
"nestjs",
"nest"
] | `TypeError: Cannot set property 'oAuthServer' of undefined`
`@Component()
export class OAuth2Server implements OnModuleInit
`
`@Middleware()
export class OAuth2Middleware implements NestMiddleware {
private logger: Logger = LoggerFactory.getLogger(this.constructor.name);
constructor(@Inject('OA... | Cannot inject into middleware | https://api.github.com/repos/nestjs/nest/issues/266/comments | 8 | 2017-11-23T11:30:57Z | 2019-09-24T07:11:56Z | https://github.com/nestjs/nest/issues/266 | 276,342,719 | 266 |
[
"nestjs",
"nest"
] | Hi
Created a pipe as per the documentation:
```
import { PipeTransform, Pipe, ArgumentMetadata } from '@nestjs/common';
@Pipe()
export class PropertyValidationPipe implements PipeTransform<any> {
transform(value: any, metadata: ArgumentMetadata) {
return value;
}
}
```
Then attempted ... | Pipe class cannot be used - ValidationPipe is not a constructor | https://api.github.com/repos/nestjs/nest/issues/265/comments | 4 | 2017-11-23T09:32:45Z | 2019-09-25T08:11:17Z | https://github.com/nestjs/nest/issues/265 | 276,309,914 | 265 |
[
"nestjs",
"nest"
] | ## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->
<pre><code>
[ ] Regression <!--(a behavior that used to work and stopped working in a new release)-->
[ ] Bug report
[X ] Feature request
[ ] Documentation issue or requ... | [SUGGESTION] Use GIT releases tag | https://api.github.com/repos/nestjs/nest/issues/264/comments | 5 | 2017-11-23T08:39:20Z | 2019-09-25T09:10:45Z | https://github.com/nestjs/nest/issues/264 | 276,297,156 | 264 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | [BUG] Request Params {mergeParams: true} | https://api.github.com/repos/nestjs/nest/issues/263/comments | 5 | 2017-11-23T00:41:03Z | 2019-09-25T09:10:48Z | https://github.com/nestjs/nest/issues/263 | 276,241,041 | 263 |
[
"nestjs",
"nest"
] | Hi everyone!
I use NesJSt in my project. Now I'm faced with the problem of uploading the file from the client. I already saw the existing Issue # 66, but that did not help me. It is difficult to formulate an issue, but maybe someone has a working example of NestJS + Multer + Angular2. In advance thanks for the answer... | Example of app Nest + Angular + Multer | https://api.github.com/repos/nestjs/nest/issues/262/comments | 10 | 2017-11-22T16:36:33Z | 2019-09-24T10:10:39Z | https://github.com/nestjs/nest/issues/262 | 276,133,002 | 262 |
[
"nestjs",
"nest"
] | Hi, i've tried all now:
- Middleware
- Controller
- Component
How do you mount an app in this framework? It's the most simple thing in express app.use(otherApp).
As I understand Middlewares are supposed to be just that, but with more nest features. So i try consumer.apply(mySubApp).forRoutes({path: '/', method: ... | Mounting an app | https://api.github.com/repos/nestjs/nest/issues/261/comments | 8 | 2017-11-22T14:03:53Z | 2019-12-20T16:20:52Z | https://github.com/nestjs/nest/issues/261 | 276,078,747 | 261 |
[
"nestjs",
"nest"
] | <!--
PLEASE HELP US PROCESS GITHUB ISSUES FASTER BY PROVIDING THE FOLLOWING INFORMATION.
ISSUES MISSING IMPORTANT INFORMATION MAY BE CLOSED WITHOUT INVESTIGATION.
-->
## I'm submitting a...
<!--
Please search GitHub for a similar issue or PR before submitting.
Check one of the following options with "x" -->... | [BUG] static fields in MiddlewaresModule are not cleaned out properly | https://api.github.com/repos/nestjs/nest/issues/260/comments | 8 | 2017-11-21T09:53:47Z | 2019-09-25T09:10:57Z | https://github.com/nestjs/nest/issues/260 | 275,648,195 | 260 |
[
"nestjs",
"nest"
] | Hello,
Is it possible to set custom properties into additional decorated parameters in controller ?
Example:
@Get()
async findAll(@Principal() principal:Principal) { }
Where principal will be built with factory based on current request context ?
I tried to use pipes, but without result. Looks interceptors... | [Question] Additional decorators used with controller parameters | https://api.github.com/repos/nestjs/nest/issues/259/comments | 5 | 2017-11-20T11:44:27Z | 2019-09-25T09:10:54Z | https://github.com/nestjs/nest/issues/259 | 275,327,279 | 259 |
[
"nestjs",
"nest"
] | Hi,
I figure out a problem with *ModuleRef* as follow from docs: https://docs.nestjs.com/advanced/circular-dependency
```typescript
@Component()
@Dependencies(ModuleRef)
export class CatsService {
constructor(moduleRef) {
this.moduleRef = moduleRef;
}
onModuleInit() {
this.service = this.m... | [core] Bug ModuleRef doesn't resolve component | https://api.github.com/repos/nestjs/nest/issues/258/comments | 5 | 2017-11-19T11:44:04Z | 2019-09-25T03:11:14Z | https://github.com/nestjs/nest/issues/258 | 275,152,359 | 258 |
[
"nestjs",
"nest"
] | Hi all,
I'm trying to nest two router method. Like that.
```
@All(':id*')
checkCat(@Param('id', new ParseIntPipe()) id, @Req() Request) {
Request.cat = {id, name: 'cat'};
console.log('checkAll', Request.cat);
}
@Get(':id')
findOne(@Param('id', new ParseIntPipe()) id, @Req() Request) {
... | [BUG] Nested methods / Unhandled promise rejection | https://api.github.com/repos/nestjs/nest/issues/257/comments | 17 | 2017-11-19T10:36:03Z | 2019-09-25T09:11:06Z | https://github.com/nestjs/nest/issues/257 | 275,148,748 | 257 |
[
"nestjs",
"nest"
] | Hi all,
I'm starting with NextJS (it looks awesome, great job!) but I have a doubt.
I see twice the documentation, but I don't see anything about nested routers. How can I do it??
Something like (/cats/:shomecat/dogs/).
I see that I can do it if in the dogsController:
@Controller('cats/:hash/dogs')
But... | What about nested routers? | https://api.github.com/repos/nestjs/nest/issues/256/comments | 3 | 2017-11-18T20:58:09Z | 2019-09-25T09:11:21Z | https://github.com/nestjs/nest/issues/256 | 275,109,341 | 256 |
[
"nestjs",
"nest"
] | Hi,
there is an older issue, which got implemented: https://github.com/nestjs/nest/issues/40 - allowing to
`setGlobalPrefix('api')`
on the app instance.
This is a very neat feature and since I'm looking to create some sort of a "route tree", it would be great to set some "route extending strategy".
Say I wa... | Global prefix for a module / route tree | https://api.github.com/repos/nestjs/nest/issues/255/comments | 41 | 2017-11-18T19:08:40Z | 2019-09-25T06:11:29Z | https://github.com/nestjs/nest/issues/255 | 275,102,120 | 255 |
[
"nestjs",
"nest"
] | @kamilmysliwiec :) | Why decorator name is Component and not Service? | https://api.github.com/repos/nestjs/nest/issues/254/comments | 18 | 2017-11-18T13:41:41Z | 2019-09-25T07:10:47Z | https://github.com/nestjs/nest/issues/254 | 275,080,208 | 254 |
[
"nestjs",
"nest"
] | I am trying to follow Passport integration example, and using Postman, I am getting unauthorized regardless of JWT token present or not. In fact, since our validation returns true all the time, we should not even see unauthorised at all.
When I try and console log from within the validateUser function, it appears n... | passport.use(this) doesn't seem to work in Passport example? | https://api.github.com/repos/nestjs/nest/issues/253/comments | 2 | 2017-11-18T04:50:17Z | 2019-09-25T05:11:53Z | https://github.com/nestjs/nest/issues/253 | 275,053,412 | 253 |
[
"nestjs",
"nest"
] | Hi,
I just start to learn `nestjs` and i have downloaded the example for testing it.
I just want to create an cat with `POST` method `/cats/` and i have a `error 500`.
On the body i put this:
```
{
"name": "odo",
"age":"ss",
"breed": "dd"
}
```
But when i debug the `ValidationPipe` on the `tranform()` ... | [BUG] ValidationPipe not working with cat-app example | https://api.github.com/repos/nestjs/nest/issues/252/comments | 3 | 2017-11-17T20:40:32Z | 2019-09-25T09:11:03Z | https://github.com/nestjs/nest/issues/252 | 274,990,336 | 252 |
[
"nestjs",
"nest"
] | Does onMessage support the acknowledgement callback?
Example 1:
@SubscribeMessage('events')
onEvent(client, data): WsResponse<any> {
const event = 'events';
return { event, data };
}
Example 2:
socket.on('news', (data, callback) => {
callback(0);
}); | Websocket acknowledgement | https://api.github.com/repos/nestjs/nest/issues/249/comments | 4 | 2017-11-16T20:10:14Z | 2019-09-24T21:10:39Z | https://github.com/nestjs/nest/issues/249 | 274,647,684 | 249 |
[
"nestjs",
"nest"
] | Sorry if i missed it in the documentation: Is clustering/multi-threading supported? Is it possible to cluster only certain modules? And if yes, can the child processes easily communicate with each other/the master process(e.g. by use of Redis)?
Despite optimizing performance for heavy algorithms this is very importa... | What about Clustering? | https://api.github.com/repos/nestjs/nest/issues/248/comments | 2 | 2017-11-16T19:48:27Z | 2019-09-25T09:10:36Z | https://github.com/nestjs/nest/issues/248 | 274,641,237 | 248 |
[
"nestjs",
"nest"
] | Is it possible to inject custom logger into nest components ? | [Question] Custom logger | https://api.github.com/repos/nestjs/nest/issues/247/comments | 62 | 2017-11-16T12:41:59Z | 2019-09-24T21:11:20Z | https://github.com/nestjs/nest/issues/247 | 274,502,411 | 247 |
[
"nestjs",
"nest"
] | I think there are way too much issues about this.
We could redirect to stack overflow and / or the gitter which are IMO more suited to it. It would help keeping the issues clean for features requests, bugs and discussion about the framework itself.
This could be enforced via an ISSUE_TEMPLATE.md for redirecting ... | Too much questions about how to use the framework. | https://api.github.com/repos/nestjs/nest/issues/245/comments | 28 | 2017-11-14T13:41:27Z | 2019-09-25T09:11:00Z | https://github.com/nestjs/nest/issues/245 | 273,796,218 | 245 |
[
"nestjs",
"nest"
] | Hi,
Right now dependency injection is not possible in global pipes,guards,filters and interceptors (#230),
is there any way to set globality inside decorator?
```javascript
@Guard({global:true}) //or @Guard(true)
export class AuthGuard implements CanActivate{
constructor(private authService: AuthService) {... | How to inject component into global guards,filters,pipes and interceptors? | https://api.github.com/repos/nestjs/nest/issues/244/comments | 16 | 2017-11-14T11:33:58Z | 2019-09-24T05:10:42Z | https://github.com/nestjs/nest/issues/244 | 273,760,004 | 244 |
[
"nestjs",
"nest"
] | I've started a small project using nest and I'm loving it :) Kudos to the team!
I was wondering if there's any documented design pattern or suggested architecture for nest to minimize repetition when dealing with model interfaces, entities and DTOs.
This is, considering the maintainability of the metadata associa... | Best practices to avoid repetition | https://api.github.com/repos/nestjs/nest/issues/243/comments | 9 | 2017-11-14T00:33:47Z | 2019-09-23T16:11:09Z | https://github.com/nestjs/nest/issues/243 | 273,627,648 | 243 |
[
"nestjs",
"nest"
] | With every message received there's a log in the console "undefined". Is this redundant?
https://github.com/nestjs/nest/blob/master/src/websockets/adapters/io-adapter.ts#L45 | Redundant console.log in IoAdapter? | https://api.github.com/repos/nestjs/nest/issues/242/comments | 2 | 2017-11-13T12:45:08Z | 2019-09-25T09:11:33Z | https://github.com/nestjs/nest/issues/242 | 273,416,826 | 242 |
[
"nestjs",
"nest"
] | I'm building the backend for a startup. We were initially going to deploy on the google app engine but now the team has decided to switch over to cloud functions. I've already built a great deal of the backend using the nestjs framework and I love it. Is there any way I could use the nest framework in conjunction with ... | Deploying to google cloud functions | https://api.github.com/repos/nestjs/nest/issues/238/comments | 27 | 2017-11-10T04:07:38Z | 2019-09-24T01:11:09Z | https://github.com/nestjs/nest/issues/238 | 272,814,064 | 238 |
[
"nestjs",
"nest"
] | It would be great if, instead of only configuring middleware when setting up the module, it was possible to add middleware declaratively using decorators on the controller. For example, to apply a middleware to all methods in a controller:
```
@Controller('cats')
@Apply(LoggerMiddleware)
export class CatsController... | Apply middleware using decorator | https://api.github.com/repos/nestjs/nest/issues/235/comments | 4 | 2017-11-07T13:09:47Z | 2019-09-25T09:11:09Z | https://github.com/nestjs/nest/issues/235 | 271,825,697 | 235 |
[
"nestjs",
"nest"
] | I want to use the LoggerService component inside HttpExceptionHelper component:
```
@Component()
export class LoggerService {
// ...
}
@Component()
export class HttpExceptionHelper {
constructor(private readonly loggerService: LoggerService) {}
// ...
}
```
However, loggerService inside Http... | Inject component into component | https://api.github.com/repos/nestjs/nest/issues/234/comments | 2 | 2017-11-07T11:54:34Z | 2019-09-25T09:11:42Z | https://github.com/nestjs/nest/issues/234 | 271,805,097 | 234 |
[
"nestjs",
"nest"
] |
### What is a Middleware Pipeline ?
For now all Middleware run in sequence
```
Client => Middleware1 => Middleware2 => Middleware3 => Server (Controller)
```
What's Middleware Pipeline is to create a pipeline that will make Middleware run in parallel , **WHAT** ?
```
| => (Pipeline) [Middleware1 => ... | [Suggestion] Adding Middleware Pipeline | https://api.github.com/repos/nestjs/nest/issues/233/comments | 5 | 2017-11-07T08:20:19Z | 2019-09-25T09:11:39Z | https://github.com/nestjs/nest/issues/233 | 271,744,459 | 233 |
[
"nestjs",
"nest"
] | Hi,
Great framework btw :smile:
Quick question, I know it's mentioned in the docs but I'm not clear on the process for creating a global filter to respond with customised error messages.
Any help on this would be greatly appreciated :+1: | Custom 404 error message | https://api.github.com/repos/nestjs/nest/issues/232/comments | 6 | 2017-11-06T19:12:59Z | 2019-09-24T05:11:38Z | https://github.com/nestjs/nest/issues/232 | 271,587,228 | 232 |
[
"nestjs",
"nest"
] | Hi all, i can't rewrite controllers exceptions.
When TypeORM generate some exceptions, i want display this for end user in error message.
Exception Filters and Interceptors not work in this case. | How rewrite service exception? | https://api.github.com/repos/nestjs/nest/issues/231/comments | 7 | 2017-11-06T15:48:01Z | 2019-09-25T09:11:12Z | https://github.com/nestjs/nest/issues/231 | 271,521,390 | 231 |
[
"nestjs",
"nest"
] | Say we created a logger component:
```
@Component()
export class LoggerService {
logger: any;
constructor() {
this.logger = new Logger({
transports: [
new transports.Console({
json: false,
timestamp: true,
... | How to inject component into interceptor? | https://api.github.com/repos/nestjs/nest/issues/230/comments | 9 | 2017-11-06T15:30:49Z | 2019-09-25T09:11:48Z | https://github.com/nestjs/nest/issues/230 | 271,515,212 | 230 |
[
"nestjs",
"nest"
] | Hello.
In my application I want to configure express app before launching it (all the 3rd party middleware, sessions, passport, hostname and port).
The configuration provider is in my common module and it depends on the environment service that is injected into it. Is there way to do this kind of routine thing with... | [Question] Access container before launching an app. | https://api.github.com/repos/nestjs/nest/issues/229/comments | 4 | 2017-11-05T06:44:14Z | 2019-09-25T09:11:15Z | https://github.com/nestjs/nest/issues/229 | 271,252,897 | 229 |
[
"nestjs",
"nest"
] | Hi,
It's possible to inherit parent controller methods? I tried to create kind of `RestController` with CRUD methods, but the child seems to not get any of them.
Any idea? | (question) How to inherit exposed controller http methods? | https://api.github.com/repos/nestjs/nest/issues/228/comments | 20 | 2017-11-04T20:39:57Z | 2019-09-23T15:10:44Z | https://github.com/nestjs/nest/issues/228 | 271,223,299 | 228 |
[
"nestjs",
"nest"
] | Hi my name is ..., who? My name is ..., what? My name is Au Au Au Automagic.
I just realize, that we can create Auto-loader, I don't know if you guys wrote in php before, but there was a nice feature killer called Autoloading Classes http://php.net/manual/en/language.oop5.autoload.php
But now, we have **nest** an... | (feature): Default provider | https://api.github.com/repos/nestjs/nest/issues/227/comments | 3 | 2017-11-04T20:31:58Z | 2019-09-25T09:11:18Z | https://github.com/nestjs/nest/issues/227 | 271,222,569 | 227 |
[
"nestjs",
"nest"
] | ```text
╭─cojack@cojack-laptop ~/Projects/private/i-know-nest ‹v8.5.0› ‹master›
╰─$ npm start ... | bug? (core) Injector: Object prototype may only be an Object or null: undefined | https://api.github.com/repos/nestjs/nest/issues/226/comments | 5 | 2017-11-04T09:30:32Z | 2019-09-25T09:11:54Z | https://github.com/nestjs/nest/issues/226 | 271,179,139 | 226 |
[
"nestjs",
"nest"
] | Hello,
I'm just starting to work with nest.js framework and I noticed a couple of times, that I get a similar message:
> Nest can't resolve dependencies of the SomeService. Please verify whether all of them are available in the current context
Wouldn't it be possible to tell precisely which dependency is not b... | More informative error message when dependencies are improperly setup | https://api.github.com/repos/nestjs/nest/issues/223/comments | 9 | 2017-11-01T08:58:42Z | 2019-09-24T21:11:09Z | https://github.com/nestjs/nest/issues/223 | 270,239,098 | 223 |
[
"nestjs",
"nest"
] | Hello. I'm trying to inject specific Logger component into my LoggerMiddleware depending on env variable.
1. **LoggerMiddleware**
```[typescript]
export const TLogger = Symbol('ILogger');
@Middleware()
export class LoggerMiddleware implements NestMiddleware {
constructor(@Inject(TLogger) private logger: I... | [Question] Middleware dependencies. | https://api.github.com/repos/nestjs/nest/issues/222/comments | 3 | 2017-11-01T06:21:04Z | 2019-09-25T09:11:45Z | https://github.com/nestjs/nest/issues/222 | 270,207,218 | 222 |
[
"nestjs",
"nest"
] | Hi @kamilmysliwiec!
I'm currently building a project using Nest and TypeORM. But I've been experiencing a strange issue with a broken DI mechanism. It looks to me that it is somehow connected to the Nest <-> TypeORM wiring
Here is the screenshot of my terminal's output
 | https://api.github.com/repos/nestjs/nest/issues/220/comments | 9 | 2017-10-30T12:08:19Z | 2019-09-24T09:11:20Z | https://github.com/nestjs/nest/issues/220 | 269,576,494 | 220 |
[
"nestjs",
"nest"
] |
Hi @kamilmysliwiec,
Is there any reason why I can't **inject** when creating a custom provider with **useClass**?.
I want to keep my domain model classes agnostic to the framework, that's why I want to define my classes without any framework intervention. Looking into the code the only way to inject when creatin... | Inject on custom providers with useClass. | https://api.github.com/repos/nestjs/nest/issues/219/comments | 10 | 2017-10-30T04:25:33Z | 2019-11-10T17:56:10Z | https://github.com/nestjs/nest/issues/219 | 269,478,408 | 219 |
[
"nestjs",
"nest"
] | Hi,
When trying to get a sub injectable (for example `Component`) it returns null.
For example:
```
// DatabaseModule
@Module({
modules: [],
components: [
SubService
]
})
export class AppModule {
}
// App Module
@Module({
modules: [
DatabaseModule
]
})
export class AppModule... | [Question | Bug] - getting sub injectable from TestingModule | https://api.github.com/repos/nestjs/nest/issues/218/comments | 5 | 2017-10-28T20:41:22Z | 2019-09-25T10:10:53Z | https://github.com/nestjs/nest/issues/218 | 269,348,341 | 218 |
[
"nestjs",
"nest"
] | So this happened when I tried to include body as a parameter to a post function, e.g.:
````TypeScript
@Post()
async insertCat( @Body() cat) {
return cat;
}
````
The error:
> TSError: ⨯ Unable to compile TypeScript
src\modules\cats.controller.ts (10,23): 'Body' only refers to a type, but... | 'Body' only refers to a type, but is being used as a value here. | https://api.github.com/repos/nestjs/nest/issues/217/comments | 1 | 2017-10-28T14:10:40Z | 2019-09-25T10:11:14Z | https://github.com/nestjs/nest/issues/217 | 269,320,421 | 217 |
[
"nestjs",
"nest"
] | Hi,
Is it possible to create Metadata object which implements argument Metadata interface? I need it in order to test pipes. Sure I can create a simple object wich is implementing this interface, but I am curious if there is a different way. | [Question] How to create a ArgumentMetadata for testing pipes | https://api.github.com/repos/nestjs/nest/issues/216/comments | 4 | 2017-10-28T10:30:22Z | 2019-09-25T10:11:08Z | https://github.com/nestjs/nest/issues/216 | 269,305,258 | 216 |
[
"nestjs",
"nest"
] | let's say that I'd like to do something like `cats/5/doctor-visits/2` where `5` is `catId` and `2` is `doctorVisitsId`? Would that even be possible? would I need a new controller for this or could I just somehow nest controllers?
Currently I have a controller for `@Controller('cats/:id/doctor-visits/:docId')` | Complex controller paths | https://api.github.com/repos/nestjs/nest/issues/215/comments | 6 | 2017-10-28T10:04:05Z | 2019-09-25T10:10:56Z | https://github.com/nestjs/nest/issues/215 | 269,302,723 | 215 |
[
"nestjs",
"nest"
] | I haven't come up with a good solution to this and I'm curious if anyone has an example. | E2E test of route with passport middleware applied | https://api.github.com/repos/nestjs/nest/issues/214/comments | 9 | 2017-10-28T05:01:30Z | 2019-09-25T09:11:36Z | https://github.com/nestjs/nest/issues/214 | 269,283,898 | 214 |
[
"nestjs",
"nest"
] | Hi,
I am trying to write a unit test to one of my controllers:
```
beforeEach(async () => {
const module = await Test.createTestingModule({
controllers: [UsersController],
components: [
UserService, // <--- want to mock this
UtilsService
],
}).comp... | [Question] How to mock a Component while creating a Test Module | https://api.github.com/repos/nestjs/nest/issues/211/comments | 4 | 2017-10-27T21:06:01Z | 2019-09-25T10:11:12Z | https://github.com/nestjs/nest/issues/211 | 269,235,283 | 211 |
[
"nestjs",
"nest"
] | it would be great if it would be possible to add a prefix to all routes, like in this lib example:
https://github.com/pleerock/routing-controllers#prefix-all-controllers-routes
This is how it can be done in express:
https://stackoverflow.com/a/29993694/1691423 | setGlobalPrefix not specified in docs | https://api.github.com/repos/nestjs/nest/issues/210/comments | 4 | 2017-10-27T17:56:49Z | 2019-09-25T10:11:05Z | https://github.com/nestjs/nest/issues/210 | 269,187,580 | 210 |
[
"nestjs",
"nest"
] | Hi,
I think it would be great to have a simplified version of the interceptor mechanism, which will use the current implementation.
I suggest to create a base interceptor class, which will look like so:
```
export abstract class BaseInterceptor implements NestInterceptor {
protected onBefore(request?: any) {
... | [Suggestion] - add simplified class for interceptor | https://api.github.com/repos/nestjs/nest/issues/209/comments | 11 | 2017-10-27T06:15:03Z | 2019-09-25T06:11:53Z | https://github.com/nestjs/nest/issues/209 | 268,998,746 | 209 |
[
"nestjs",
"nest"
] | Hi! Have you thought about moving from socket.io to sockjs? The thing is that socket.io is known for not guaranteeing message order in certain cases. There's a informative [comparison](http://xsnippet.org/359042/). I know I can use my own ws adapter, but shouldn't the best possible tools for the job be propagated as de... | Move from socket.io to sockjs | https://api.github.com/repos/nestjs/nest/issues/208/comments | 3 | 2017-10-26T20:17:32Z | 2019-09-24T11:10:36Z | https://github.com/nestjs/nest/issues/208 | 268,897,252 | 208 |
[
"nestjs",
"nest"
] | ExpressJS 4.16.x (finally!) has `body-parser` as built-in middleware. It should be updated, and the `body-parser` dependency removed (including in the examples). | Update expressJS dependency to 4.16.x | https://api.github.com/repos/nestjs/nest/issues/206/comments | 4 | 2017-10-25T12:53:37Z | 2019-09-25T04:11:56Z | https://github.com/nestjs/nest/issues/206 | 268,385,989 | 206 |
[
"nestjs",
"nest"
] | Hi,
Is there a way to run migrations with defining the connection as described in the docs?
```
export const databaseProviders = [
{
provide: DB_CON_TOKEN,
useFactory: async () => await createConnection({
type: 'mysql',
host: 'localhost',
port: 3306,
username: 'root',
... | TypeORM migrations | https://api.github.com/repos/nestjs/nest/issues/205/comments | 7 | 2017-10-24T20:28:45Z | 2019-09-25T09:11:27Z | https://github.com/nestjs/nest/issues/205 | 268,174,655 | 205 |
[
"nestjs",
"nest"
] | How do we go about overwriting the default express response for when there is no route defined? Before I was able to define all my routes and then have a catch all statement like this:
```
app.all('/api/*', (req: express.Request, res: express.Response, next: Function): void => {
ErrorHandler.run(new APINot... | Question: How can I overwrite the default 404 response when route doesn't exist | https://api.github.com/repos/nestjs/nest/issues/204/comments | 2 | 2017-10-24T11:04:32Z | 2019-09-25T10:11:02Z | https://github.com/nestjs/nest/issues/204 | 267,988,880 | 204 |
[
"nestjs",
"nest"
] | Hi @kamilmysliwiec ,
As a test I used your microservice example, and it worked (everything is same app). Then i tried to use `ClientProxy` on my nest app, and call that running microservice, but I don't any get results the request just stuck.
What I'm going wrong? | Unable to connect to microcervice | https://api.github.com/repos/nestjs/nest/issues/203/comments | 7 | 2017-10-24T08:48:40Z | 2019-09-24T03:10:56Z | https://github.com/nestjs/nest/issues/203 | 267,947,157 | 203 |
[
"nestjs",
"nest"
] | Hi all,
I want use this gorgeous framework inside my application but I've some questions to ask:
1. Is it possible to use Nest w/out start web application? If the answer is yes, how?
2. How can get components instance outside Nest context for using in parent application with benefits of DI? | Using app without start web application | https://api.github.com/repos/nestjs/nest/issues/201/comments | 17 | 2017-10-22T21:59:57Z | 2019-09-25T08:12:05Z | https://github.com/nestjs/nest/issues/201 | 267,502,451 | 201 |
[
"nestjs",
"nest"
] | There is a warning that ExceptionFilters has been deprecated since v2.1.2, and two major versions is enough to have it removed from the codebase in v5. | Remove ExceptionFilters from codebase | https://api.github.com/repos/nestjs/nest/issues/200/comments | 2 | 2017-10-22T20:19:37Z | 2019-09-25T10:11:17Z | https://github.com/nestjs/nest/issues/200 | 267,495,453 | 200 |
[
"nestjs",
"nest"
] | I'm interested in developing some feature modules to build into the nest ecosystem, like the following:
- HTTP (like Angular, using fetch() or XHR, or some other HTTP adapter)
- Mongo and Mongoose, to build DB functionality right into a provider
- Nest-maintained middlewares (plug and play classes for common expres... | Discussion: feature modules | https://api.github.com/repos/nestjs/nest/issues/198/comments | 18 | 2017-10-22T19:56:26Z | 2019-09-25T06:11:35Z | https://github.com/nestjs/nest/issues/198 | 267,493,703 | 198 |
[
"nestjs",
"nest"
] | The NPM org @nest has 0 things inside, so you can likely petition NPM to give you the name. That would be a good change for v5. | Suggestion: rename to @nest/* | https://api.github.com/repos/nestjs/nest/issues/197/comments | 6 | 2017-10-22T19:52:24Z | 2019-09-25T10:10:59Z | https://github.com/nestjs/nest/issues/197 | 267,493,395 | 197 |
[
"nestjs",
"nest"
] | Hello!
I think a much needed feature is to automatically parse Controller method arguments into the appropriate Entity. This is very easy to do using a pipe, but I think it is worth making its own example, or even an npm package, so that it can be plugged in effortlessly.
```
import { HttpException } from '@nest... | Parse controller method argument into Entity | https://api.github.com/repos/nestjs/nest/issues/196/comments | 16 | 2017-10-22T17:54:22Z | 2019-09-25T04:10:59Z | https://github.com/nestjs/nest/issues/196 | 267,484,755 | 196 |
[
"nestjs",
"nest"
] | I want to get the client ip address, but I didn't find how to do it. | How to get client ip from the request? | https://api.github.com/repos/nestjs/nest/issues/195/comments | 4 | 2017-10-22T13:39:32Z | 2019-11-13T13:56:17Z | https://github.com/nestjs/nest/issues/195 | 267,465,635 | 195 |
[
"nestjs",
"nest"
] | I have a question regarding testing as described on https://docs.nestjs.com/advanced/unit-testing:
```
beforeEach(async () => {
const module = await Test.createTestingModule({
controllers: [CatsController],
components: [CatsService],
}).compile();
catsService = module.get<CatsSe... | How to test a controller with a service that has @Inject in its constructor? | https://api.github.com/repos/nestjs/nest/issues/194/comments | 33 | 2017-10-20T16:34:52Z | 2019-09-23T19:11:05Z | https://github.com/nestjs/nest/issues/194 | 267,233,527 | 194 |
[
"nestjs",
"nest"
] | Suppose I have
Module A
- Controller A
- Component A
Module B
- Controller B
- Component B
If I want to use controller B in controller A, is dependency injection a good choice?
But in order to use dependency injection, I should do following in Module A:
controllers: [Controller A],
components: [Component A,... | Cross modules dependency injection | https://api.github.com/repos/nestjs/nest/issues/193/comments | 9 | 2017-10-20T07:40:03Z | 2019-09-25T10:11:20Z | https://github.com/nestjs/nest/issues/193 | 267,088,859 | 193 |
[
"nestjs",
"nest"
] | Adding a error handler on the express instance itself has no effect, it never gets fired. I belive this is due to the ExceptionFilters which capture all the errors. Not captured errors are handled within the [ExceptionsHandler](https://github.com/nestjs/nest/blob/master/src/core/exceptions/exceptions-handler.ts#L12) cl... | express ErrorRequestHandler not fired | https://api.github.com/repos/nestjs/nest/issues/192/comments | 5 | 2017-10-19T18:49:12Z | 2019-09-25T03:11:05Z | https://github.com/nestjs/nest/issues/192 | 266,949,008 | 192 |
[
"nestjs",
"nest"
] | I am trying to test a logger-service, which uses imports from the node_modules `winston` and `fs`, and I would like to mock these imports, but I don't know how. With nest it's really easy to mock the injected dependencies, but these dependencies are imported, not injected. For normal Node.js modules I use [proxyquire](... | How can you mock external dependencies? | https://api.github.com/repos/nestjs/nest/issues/191/comments | 15 | 2017-10-19T10:33:35Z | 2019-09-24T23:11:35Z | https://github.com/nestjs/nest/issues/191 | 266,795,672 | 191 |
[
"nestjs",
"nest"
] | Sadly, this is not working:
```ts
@Controller('some/:id')
export class CategoriesController {
@Post()
create(@Param('id') id: string)
{
console.log(id); // gives undefined
}
}
```
It seems like the issue comes from express itself (params from prefixes are not populated in `req... | Route :params not working in @Controller() and .setGlobalPrefix() | https://api.github.com/repos/nestjs/nest/issues/190/comments | 4 | 2017-10-18T16:07:04Z | 2019-09-25T03:11:50Z | https://github.com/nestjs/nest/issues/190 | 266,550,897 | 190 |
[
"nestjs",
"nest"
] | With application container access, you can build modules that have annotations...
I am building a NestJS module that works with Kue, so in the application controllers I can have something like this to define a Task:
```typescript
@Task({ name: 'justOneTest' })
justOneTest(done, task) {
console.log('Receive... | It can be nice to have access of the NestContainer instance of the application on the modules | https://api.github.com/repos/nestjs/nest/issues/189/comments | 18 | 2017-10-18T15:53:34Z | 2019-09-24T04:11:35Z | https://github.com/nestjs/nest/issues/189 | 266,546,072 | 189 |
[
"nestjs",
"nest"
] | Hi, @kamilmysliwiec
First of all, I pay tribute to the excellent job on this excited framework. Right now nest based on express that is stable and widely battle tested and I understand why you choose it. But [**fastify**](https://github.com/fastify/fastify) is pretty fast and new replacment of express, has middlewares... | How about renew express to fastify? (may be in future) | https://api.github.com/repos/nestjs/nest/issues/188/comments | 3 | 2017-10-17T23:06:29Z | 2019-09-25T10:11:29Z | https://github.com/nestjs/nest/issues/188 | 266,308,073 | 188 |
[
"nestjs",
"nest"
] | Hi,
When you create a microservice app, there is nothing like hooks for init where in nestapp their are.
It's for some purpose, the difference? | bug?(core): Missing callModuleInitHook for NestMicroservice app | https://api.github.com/repos/nestjs/nest/issues/187/comments | 3 | 2017-10-17T13:12:34Z | 2019-09-25T10:10:47Z | https://github.com/nestjs/nest/issues/187 | 266,119,031 | 187 |
[
"nestjs",
"nest"
] | From **INestMicroservice**
```typescript
/**
* Starts the microservice.
*
* @param {Function} callback Callback called after instant
* @returns Promise
*/
listen(callback: () => void): any;
```
And from **INestApplication**
```typescript
/**
* Starts the applica... | request(common): unify the API of listen method in INestMicroservice with INestApplication | https://api.github.com/repos/nestjs/nest/issues/186/comments | 3 | 2017-10-14T09:20:20Z | 2019-09-25T10:11:27Z | https://github.com/nestjs/nest/issues/186 | 265,477,766 | 186 |
[
"nestjs",
"nest"
] | Hi,
as from [docs](https://docs.nestjs.com/microservices/basics):
```typescript
import { NestFactory } from '@nestjs/core';
import { ApplicationModule } from './modules/app.module';
import { Transport } from '@nestjs/microservices';
async function bootstrap() {
const app = await NestFactory.createMicroserv... | bug(core): createMicroservice without config throw TypeError: Cannot match against 'undefined' or 'null'. | https://api.github.com/repos/nestjs/nest/issues/185/comments | 3 | 2017-10-14T09:13:00Z | 2019-09-25T10:10:44Z | https://github.com/nestjs/nest/issues/185 | 265,477,323 | 185 |
[
"nestjs",
"nest"
] | #### Hello
@kamilmysliwiec
I have created a repo I have built typeorm - jest - class-validator - passport all is fine but when I run the command "npm run start: prod" the following error message appears, I thought that this is a bad configuration but I tested the command in the application "01-cats-app" but the err... | 01-cats-app - npm run start:prod | https://api.github.com/repos/nestjs/nest/issues/184/comments | 11 | 2017-10-10T19:39:19Z | 2019-09-24T00:11:41Z | https://github.com/nestjs/nest/issues/184 | 264,351,015 | 184 |
[
"nestjs",
"nest"
] | 
> This is more an error handling issue than anything else. This should obviously create an error condition, imo it should just be handled a bit better.
In https://github.co... | bug(storeRelatedModule): forwardRef can be undefined | https://api.github.com/repos/nestjs/nest/issues/183/comments | 4 | 2017-10-10T04:48:49Z | 2019-09-25T10:11:35Z | https://github.com/nestjs/nest/issues/183 | 264,098,307 | 183 |
[
"nestjs",
"nest"
] | [For controllers,](https://docs.nestjs.com/controllers) there was a lack of detail regarding the intended structure of the tutorial app that should be looked at.
For "Last Step," I saw in the app.module.ts example that the CatsController was supposed to go in a folder called cats.
`import { CatsController } from... | Controller Section of Overview needs clarity. | https://api.github.com/repos/nestjs/nest/issues/182/comments | 5 | 2017-10-09T21:08:06Z | 2019-09-25T09:11:24Z | https://github.com/nestjs/nest/issues/182 | 264,026,692 | 182 |
[
"nestjs",
"nest"
] | I tried using connect-timeout to control the request time but it has this error:
```bash
(node:12928) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: connect_timeout_1.timeout is not a function
(node:12928) [DEP0018] DeprecationWarning: Unhandled promise rejections are d... | Trying to include timeout | https://api.github.com/repos/nestjs/nest/issues/181/comments | 2 | 2017-10-08T21:06:53Z | 2019-09-25T10:11:38Z | https://github.com/nestjs/nest/issues/181 | 263,751,881 | 181 |
[
"nestjs",
"nest"
] | I've a guard which returns false if the request doesn't have correct jwt token or has expired jwt token. But I'm not being able to send the message back to notify why the request is 403 forbidden.
here's my code
``` typescript
@Guard()
export class AuthGuard implements CanActivate {
canActivate(req: Reque... | Custom messages from guards | https://api.github.com/repos/nestjs/nest/issues/180/comments | 6 | 2017-10-08T13:03:59Z | 2019-09-25T10:11:41Z | https://github.com/nestjs/nest/issues/180 | 263,716,408 | 180 |
[
"nestjs",
"nest"
] | I have a method with the message pattern defined below
```
@MessagePattern({ cmd: 'somepattern' })
register(dto: any): Observable<any> {
return Observable.fromPromise(Promise.reject("Test"));
}
```
After subscribing to the output observable, the error message is swallowed
```
this.client.send<any>(patt... | Microservices - client send swallowing error messages? | https://api.github.com/repos/nestjs/nest/issues/179/comments | 2 | 2017-10-05T16:33:10Z | 2019-09-25T10:11:44Z | https://github.com/nestjs/nest/issues/179 | 263,189,785 | 179 |
[
"nestjs",
"nest"
] | Some errors types as invalid signature, jwt expired, no auth token, invalid token, invalid algorithm... are not being handled on [passport-jwt](https://github.com/themikenicholson/passport-jwt)
The default response send only 'unauthorized' message and http status 401
[In this Issue](https://github.com/themikenic... | [Passport] Custom callback in Passport Middleware for error handler | https://api.github.com/repos/nestjs/nest/issues/178/comments | 21 | 2017-10-05T14:32:37Z | 2019-09-25T03:11:26Z | https://github.com/nestjs/nest/issues/178 | 263,148,044 | 178 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.