-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm run start:dev is not working in docker #1
Comments
It is absurd that nest is so buggy for something so essential and yet so simple as hot reloading when using docker... I was thinking about using nodemon and this worked perfectly. since I am using the setup with nestjs monorepo, I pass the package.json
docker-compose
I notice |
I solved the problem by replacing "typescript": "^4.7.4" to "typescript": "~4.7.4" and npm install again locally. I don't now what is the bug. |
I had the same issue. Fixed by updating start:dev command in package.json with "watchOptions": {
"watchFile": "fixedPollingInterval"
} |
I saw your issue nestjs/nest#11010 and I encountered the same problem, start:dev can't run in docker, I ended up using nodemon instead of star:dev
This might not be the best way, but it works! !
make some changes on scripts in the package.json file:
npm install typescript @types/node ts-node nodemon -D
"start:dev": "nest start --watch"
to"start:dev": "nodemon --legacy-watch -x ts-node src/main.ts"
"nodemon": "nodemon --legacy-watch -x ts-node src/main.ts"
there is a reference:
Hope this helps you
The text was updated successfully, but these errors were encountered: