question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Modification not effective when using start:dev

See original GitHub issue

Bug Report

Current behavior

I’m using start:dev in my development env. But sometimes, I found my modification not effective, until I close it and run npm run build and restart it. Sorry for that I have no time to see which modifications can cause the problem.But always found this happens when I’m editing my Entity code(typeorm), after editing the code, swagger docs not change, but after npm run build npm run start:dev ,the docs changed.

Input Code

For example: Entity like this:

...
  password!: string
...

swagger will show the password, but I don’t want this. so I add this in my Entity

...
  @ApiHideProperty()
  password!: string
...

but swagger doc still display the password. then I run npm run build npm run start:dev the swagger show the correct docs

Expected behavior

Possible Solution

Environment


Nest version: @nestjs/common@7.0.9
Swagger version: @nestjs/swagger@4.5.5

 
For Tooling issues:
- Node version: 12.16.2
- Platform:  Mac os

Others:


Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
kamilmysliwieccommented, Aug 20, 2020

It should be fixed now (4.6.0)

0reactions
dsbertcommented, May 27, 2020

I am also running into this issue. Running npm start:dev again does not update the docs fully, but manually performing an npm build does.

Read more comments on GitHub >

github_iconTop Results From Across the Web

watch not reloading after changes (nest start - Stack Overflow
I have a nest.js installation. When I run npm run start:dev (which runs start --watch) ...
Read more >
Hot reload | NestJS - A progressive Node.js framework
Similarly, webpack is not compatible with glob static paths (e.g., ... Also, it returns a modified webpack configuration with the ... npm run...
Read more >
Start.Dev.Change - An Intro to Mobile Development!
We intrinsically understand the user's challenges in installing, navigating and using, these experiences because we are that user!. Working with ...
Read more >
Developing scripts using development endpoints - AWS Glue
You can create, edit, and delete development endpoints using the AWS Glue console or API. Note. Development endpoints are not supported for use...
Read more >
Dockerize you projects for faster setup and development
We saw how to use Docker to spin up an container which was ... To fix it, open your package.json file and change...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found