v13.10.0 - Nestjs hotreload is not working
See original GitHub issueCurrent Behavior
Newly created nestjs application using the docs and the command npx create-nx-workspace my-workspace --preset=nest
has not working hot reload. By default when you create nestjs application there is built in hot reload module which will reload the application on code changes.
Expected Behavior
Running npm run start
command in newly created nx workspace with nestjs should behave similar to running npm run start:dev
in newly created nestjs application - watching the files and reloading the servers when there are any changes.
Steps to Reproduce
- Run
npx create-nx-workspace my-workspace --preset=nest
- Finish the setup
- Enter
my-workspace
directory - Run
npm run start
command - Change the nestjs code in
apps/<application name/src
directory - Server is not reloading
Failure Logs
Environment
Node : 16.13.0
OS : linux x64
npm : 7.5.6
nx : 13.10.1
@nrwl/angular : Not Found
@nrwl/cypress : Not Found
@nrwl/detox : Not Found
@nrwl/devkit : 13.10.1
@nrwl/eslint-plugin-nx : 13.10.1
@nrwl/express : Not Found
@nrwl/jest : 13.10.1
@nrwl/js : 13.10.1
@nrwl/linter : 13.10.1
@nrwl/nest : 13.10.1
@nrwl/next : Not Found
@nrwl/node : 13.10.1
@nrwl/nx-cloud : 13.2.2
@nrwl/nx-plugin : Not Found
@nrwl/react : Not Found
@nrwl/react-native : Not Found
@nrwl/schematics : Not Found
@nrwl/storybook : Not Found
@nrwl/web : Not Found
@nrwl/workspace : 13.10.1
typescript : 4.6.3
rxjs : 7.5.5
---------------------------------------
Community plugins:
Issue Analytics
- State:
- Created a year ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Hot module reload is not working on my nextjs app
Got help from @felixmosh. There was issue because of my folders were case was not matching route case. Fixed the issues by changing...
Read more >Basic Features: Fast Refresh - Next.js
Next.js ' Fast Refresh is a new hot reloading experience that gives you instantaneous feedback on edits made to your React components.
Read more >How To Enable Hot Reloading for .env Files in Next.js
Let's learn how to make Next.js hot reload your .env files without having to relaunch the local development server or manually reload the...
Read more >How to fix the NextJS HMR(hot reload) not working error on ...
When working on NextJS applications inside WSL2, there seems to be an issue with HMR (Hot Reload) not detecting changes to your code...
Read more >Add Fast Refresh Support to our MDX Files with Nx Support ...
[0:13] However, if we go to our Dynamic Routing page here, and I add some new content here and I save, there's no...
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 Free
Top 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
Whoops! Good shout, this is not a duplicate, then, as the Next issue was caused on NestJS’s side. I misread some things. I blame the JS ecosystem’s names for being similar. I’ll reopen this now. 😅
Hey! May I know if there are any updates to this issue. I have been facing this same issue.