-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Dev server don't autodiscover new routes #2046
Comments
I have been, having the same issue. I have tried to downgrade the version but to no avail. |
Same issue. |
I've had a similar issue, but only when refreshing the page manually or entering the url. Links to the new page/resource seem to work as expected. |
same here, seems to be more so for server endpoints consistently am using Typescript in case that is the common denominator (if maybe other people don't have the issue) |
Same here. Changes to existing routes work fine, and are rendered near instantly, but if I add a new route file it isn't detected and gives a 404 error. |
Describe the bug
If the dev server is running, SvelteKit don't see newly added routes, and result in 404 when navigating to them.
Reproduction
npm init svelte@next my-app
+ select theSkeleton project
, should also be true for demo app)npm install
)npm run dev
)src/routes
(ex:src/routes/test.svelte
)http://localhost:3000/test
)Logs
System Info
Severity
serious, but I can work around it
Additional Information
The file
.svelte-kit/dev/generated/manifest.js
is correctly generated.But SvelteKit don't seem to reload it (it is only load at here:
.svelte-kit//dev/runtime/internal/start.js
)A simple workaround is to stop and restart server every times a new route is created, in DX point of view it's not ideal
Initial Discord message: https://discord.com/channels/457912077277855764/819723698415599626/870925145554952222
The text was updated successfully, but these errors were encountered: