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

  1. yarn dev
  2. create a new file in /pages (notice Vite runs)
  3. fill in the new page with content (notice Vite runs)
  4. go to the new route in your browser (notice 404 error)
  5. 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)

Most upvoted comments

I removed my yarn.lock and node_modules, and reinstalled everything. The problem still exists for me as well.

untyped: 0.2.11 nuxt: 3.0.0-27265756.d30f4d8 node: v14.18.0

This issue has been closed but is still happening for me in 3.0.0-rc.4 and Node 16.15.1.