Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In Dev, New Pages Render a Blank Page Until You Restart The Server #13307

Closed
samuglz opened this issue Jan 26, 2022 · 4 comments · Fixed by nuxt/framework#3116
Closed

In Dev, New Pages Render a Blank Page Until You Restart The Server #13307

samuglz opened this issue Jan 26, 2022 · 4 comments · Fixed by nuxt/framework#3116

Comments

@samuglz
Copy link

samuglz commented Jan 26, 2022

Environment

Nuxt CLI v3.0.0-27386975.6e06d2b
Nuxt project info:


  • Operating System: Darwin
  • Node Version: v17.2.0
  • Nuxt Version: 3.0.0-27386975.6e06d2b
  • Package Manager: npm@8.3.0
  • Bundler: Vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

  1. npm run dev
  2. create a new file in /pages
  3. fill in the new page with content
  4. go to the new route in your browser, a blank page will be rendered
  5. stop/start dev and page works

Describe the bug

When running Nuxt 3 in dev mode, if you create a new page it will rendered in your browser a blank page until you stop/start your dev server.

Additional context

No response

Logs

Browser Logs:
- vue-router.esm-bundler.js?v=ed3bc494:72 [Vue Router warn]: No match found for location with path "/posts"

- [Vue warn]: Hydration node mismatch:
  Client vnode: Symbol(Comment) 
  Server rendered DOM: <!--[--> (start of fragment) 
  at < RouterView > 
  at < NuxtPage > 
  at < App > 
  at < NuxtRoot >

- Hydration completed but contains mismatches.
@doomspec
Copy link

doomspec commented Feb 5, 2022

I am also facing this problem and wondering whether this is a problem of Nuxt3 or Vite.

@jonkri
Copy link

jonkri commented May 4, 2022

This still doesn't work for me, even with v3.0.0-rc.2. I add a pages component, navigate to it and get a 404. However, it works I restart npm run dev.

@sefacicekli
Copy link

Still doesn't work with 3.0.0-rc.12

@danielroe
Copy link
Member

Believe it or not, it's a different, but similar, issue, which should be resolved by nuxt/framework#8389

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants