nuxt: In Dev, New Pages 404 Until You Restart The Server
Environment
Nuxt CLI v3.0.0-27247485.fb4359e RootDir: /Users/joshdel/Documents/code/nuxt3 Nuxt project info:
- Operating System:
Darwin(macOS Big Sur 11.6) - Node Version:
v14.18.0 - Nuxt Version:
3.0.0-27247485.fb4359e - Package Manager:
Yarn - Bundler:
Vite - User Config:
- - Runtime Modules:
- - Build Modules:
-
Describe the bug
When running Nuxt 3 in dev mode, if you create a new file it will show a 404 in your browser until you stop/start your dev server.
Reproduction
- yarn dev
- create a new file in /pages (notice Vite runs)
- fill in the new page with content (notice Vite runs)
- go to the new route in your browser (notice 404 error)
- stop/start dev (notice page works)
Additional context
No response
Logs
No response
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 16
- Comments: 17 (6 by maintainers)
I removed my yarn.lock and node_modules, and reinstalled everything. The problem still exists for me as well.
untyped:
0.2.11nuxt:3.0.0-27265756.d30f4d8node:v14.18.0This issue has been closed but is still happening for me in
3.0.0-rc.4and Node16.15.1.@danielroe this is my repo: https://github.com/adamkif/Nuxt-Hashnode