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

Pages not automatically appearing when created while npm run dev running #14286

Closed
craigharman opened this issue Jul 7, 2022 · 5 comments · Fixed by nuxt/framework#6038
Closed

Comments

@craigharman
Copy link

craigharman commented Jul 7, 2022

Environment


  • Operating System: Darwin
  • Node Version: v14.19.1
  • Nuxt Version: 3.0.0-rc.4
  • Package Manager: npm@8.5.5
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

npx nuxi init nuxt-app
cd nuxt-app
npm install
npm run dev -- -o

Add a new page into /pages folder (eg. test.vue)

In your browser visit: http://localhost:3000/test
Get a 404

Stop/Start npm run dev -- -o
In your browser visit: http://localhost:3000/test
Get the page!

Describe the bug

Any files added to /pages folder while development server is running should be reachable in the browser straight away. Instead you have to restart nuxt.

Additional context

No response

Logs

No response

@ojvribeiro
Copy link
Contributor

ojvribeiro commented Jul 8, 2022

I can confirm this on 3.0.0-rc.4.

@lawnch-daniel
Copy link

This seems to still be an issue. I'm on rc11 and experiencing this. @pi0

@danielroe
Copy link
Member

Please open a new issue with a reproduction. 🙏

@ojvribeiro
Copy link
Contributor

I just tested RC11 here and can confirm the issue.

I made a repro on Stackblitz: https://stackblitz.com/edit/nuxt-starter-e8cv5m?file=pages/index.vue

Steps

  • Create an about.vue page
  • Try to navigate to /about

Then we get a 404, unless we manually reload the page (this time around we do not have to restart the server at least).

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
@lafllamme
Copy link

any updates?

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