I've installed and run Nuxt3 by
npx nuxi init <project-name>
cd <project-name>
npm i
npm run dev
This appeared in console:
Nuxi 3.0.0 09:52:01
Nuxt 3.0.0 with Nitro 1.0.0 09:52:01
09:52:01
> Local: http://localhost:3000/
> Network: http://172.17.181.194:3000/
✔ Nitro built in 374 ms nitro 09:52:03
ℹ Vite client warmed up in 1341ms 09:52:03
After making a change in app.vue and hitting save, nothing happend.
Then when I click reload in chrome, this appears in the console and the page shows the right data:
✔ Vite server hmr 6 files in 20.051ms 09:52:30
I have node v18.3.0. Tried the same process on node v16.15.1.
I spend hours trying different settings, but the problem - Nuxt ignoring your hmr settings. (Nuxt 3.8.2) So you just need extend vite config in hook: