nuxt-community/express-template

hot reloading not work

Closed this issue · 8 comments

rt, when I excute "npm install", and run dev, It's show

image

But when I change some data, hot reloading not work

This issue as been imported as question since it does not respect express-template issue template. Only bug reports and feature requests stays open to reduce maintainers workload.
If your issue is not a question, please mention the repo admin or moderator to change its type and it will be re-opened automatically.
Your question is available at https://cmty.app/nuxt/express-template/issues/c97.

Hello @mamtou

Which kind of data did you changed ? a .vue file .css file ... ?

background data file (./api/routes/users.js)

@mamtou for this you must restart the server. Or use this awesome express module:
https://github.com/uptownhr/nuxt-express-module

I had fixed it by nodemon, thank you guys

Hi @mamtou
Can you please share how you fixed it with nodemon?
I have the same issue, and running nodemon api\index.js doesn't seem to help.

@SixBytesUnder
Hello, for hot-reloading I recommend to use
https://github.com/uptownhr/nuxt-express-module .

@SixBytesUnder nodemon --watch api --exec “nuxt”