hot reloading not work

mamtou
0
mamtou
commented a year ago

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

image

But when I change some data, hot reloading not work

0
gaetansenn
40
gaetansenn
commented a year ago

Hello @mamtou

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

0
mamtou
0
mamtou
commented a year ago

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

0
gamelaster
0
gamelaster
commented a year ago

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

0
mamtou
0
mamtou
commented a year ago

I had fixed it by nodemon, thank you guys

0
SixBytesUnder
0
SixBytesUnder
commented a year ago

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.

0
gamelaster
0
gamelaster
commented a year ago

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

0
mamtou
0
mamtou
commented a year ago

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

0
Informations
QuestionUnresolved
#c97 - Created a year ago