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
New pages 404 unless server is restarted #15651
Comments
The time delay is an upstream issue with I can't reproduce the issue with the steps you have provided. |
@danielroe Thanks for your response, Ill try again with fresh install, and this time record it. Hopefully it does not happen. Also thanks for the info on the slowdowns! |
@danielroe After spending ages trying to figure out why a new install was working and my near-new install was not, I figured it out, please see the updated steps, and also a demo. Also yes, taking out |
Sadly, I do have the same issue. Reproduced multiple times with a complete new Nuxt project: Environment
Reproduction
<script setup lang="ts">
const route = useRoute()
</script>
<template>
<div>
<NuxtLoadingIndicator />
<div>
Current route: <code>{{ route.path }}</code>
</div>
<NuxtPage />
</div>
</template>
<template>
<div>
Index >> <nuxt-link to="/demo">Demo</nuxt-link>
</div>
</template>
<template>
<div>
Demo Page
</div>
</template>
|
I'm having this issue as well on Nuxt 3.0.0. Every time i add a new page I get the 404 error page saying a page doesn't exist. Only way to resolve it is through restarting the server. |
Environment
Windows_NT
(Windows 10 latest update)v18.12.1
3.0.0
1.0.0
yarn@1.22.19
vite
telemetry
,modules
,css
,hooks
,vite
nuxt-icon@0.1.8
-
Reproduction
app.vue
:<template><NuxtPage /></template>
do not make a "pages" directory yetyarn dev -o
<template>Hello world!</template>
-- this will work<template>Test</template>
-- this will 404Demo:
Describe the bug
New pages require server start, otherwise you get a 404. It breaks the whole point of HMR and productivity. Such a critical issue has been raised (and closed) at least 5 times, over a year without lasting fix.
#13307 (raised Jan 26!)
#13725
#13791
#15045
#15141
Having to stop and start the server takes up to 30 seconds (avg. 20s+) for me on an almost empty project. Please fix.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: