[Vite 6] /__vite_hmr doesn't match the route of any of your pages #32
Closed
Description
I have bumped version to latest vite and encouter vite hmr issue, and after create minimal repo and do some scenario testing, seems the issue lie to vike-node
Prev discussion with Rom : vikejs/vike#2017
Link repo : https://github.com/fortezhuo/vike6
14:54:30 vike6 npm run dev ✗ (main)
> vike6@0.0.1 dev
> vite
VITE v6.0.3 ready in 228 ms
➜ press h + enter to show help
2:54:32 PM [vike][request(1)] HTTP request: /__vite_hmr
2:54:32 PM [vike][request(1)] URL /__vite_hmr doesn't match the route of any of your pages:
┌───────┬──────────────────┬───────────────────┐
│ ROUTE │ TYPE │ DEFINED BY │
├───────┼──────────────────┼───────────────────┤
│ / │ Filesystem Route │ /src/pages/index/ │
└───────┴──────────────────┴───────────────────┘
See https://vike.dev/routing for more information about routing.
2:54:32 PM [vike][request(1)] HTTP response /__vite_hmr 404
2:54:33 PM [vike][request(2)] HTTP request: /
2:54:33 PM [vike][request(2)] HTTP response / 200
^C
14:54:36 vike6 ✗ (main)
14:57:23 vike6 npm run dev ✗ (main)
> vike6@0.0.1 dev
> vite
VITE v6.0.3 ready in 245 ms
➜ press h + enter to show help
2:57:33 PM [vike][request(1)] HTTP request: /__vite_hmr
2:57:33 PM [vike][request(1)] URL /__vite_hmr doesn't match the route of any of your pages:
┌───────┬──────────────────┬───────────────────┐
│ ROUTE │ TYPE │ DEFINED BY │
├───────┼──────────────────┼───────────────────┤
│ / │ Filesystem Route │ /src/pages/index/ │
└───────┴──────────────────┴───────────────────┘
See https://vike.dev/routing for more information about routing.
2:57:33 PM [vike][request(1)] HTTP response /__vite_hmr 404
2:57:34 PM [vike][request(2)] HTTP request: /
2:57:34 PM [vike][request(2)] HTTP response / 200
^C
14:57:37 vike6 npm run dev
15:27:33 vike6 bun dev ✗ (main)
$ vite
VITE v6.0.3 ready in 400 ms
➜ press h + enter to show help
Express running at http://localhost:3000
3:27:35 PM [vike][request(1)] HTTP request: /__vite_hmr
3:27:35 PM [vike][request(1)] URL /__vite_hmr doesn't match the route of any of your pages:
┌───────┬──────────────────┬───────────────────┐
│ ROUTE │ TYPE │ DEFINED BY │
├───────┼──────────────────┼───────────────────┤
│ / │ Filesystem Route │ /src/pages/index/ │
└───────┴──────────────────┴───────────────────┘
See https://vike.dev/routing for more information about routing.
3:27:35 PM [vike][request(1)] HTTP response /__vite_hmr 404
3:27:36 PM [vike][request(2)] HTTP request: /
3:27:36 PM [vike][request(2)] HTTP response / 200
^C%