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.

v13.10.0 - Nestjs hotreload is not working

See original GitHub issue

Current 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

  1. Run npx create-nx-workspace my-workspace --preset=nest
  2. Finish the setup
  3. Enter my-workspace directory
  4. Run npm run start command
  5. Change the nestjs code in apps/<application name/src directory
  6. 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:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
AgentEndercommented, Apr 12, 2022

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. 😅

0reactions
DeepaPrasannacommented, Nov 24, 2022

Hey! May I know if there are any updates to this issue. I have been facing this same issue.

Read more comments on GitHub >

github_iconTop 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 >

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