Modification not effective when using start:dev
See original GitHub issueBug 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:
- Created 3 years ago
- Reactions:4
- Comments:9 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It should be fixed now (4.6.0)
I am also running into this issue. Running
npm start:dev
again does not update the docs fully, but manually performing annpm build
does.