You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is pretty minor, but if you're using adapter-static and building a subtree that you'll be shoehorning into some other legacy app, you might not need the root route /. If you don't have one, you get this error every time you restart the dev server and you have a browser window open:
jpsimons@Johns-iMac sveltekit_no_root_path % npm run dev
> [email protected] dev
> vite dev
VITE v3.1.7 ready in 242 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
Not found: /
Error: Not found: /
at resolve (file:///Users/jpsimons/dev/sveltekit_no_root_path/node_modules/@sveltejs/kit/src/runtime/server/index.js:259:13)
at resolve (file:///Users/jpsimons/dev/sveltekit_no_root_path/node_modules/@sveltejs/kit/src/runtime/server/index.js:290:5)
at Object.handle (file:///Users/jpsimons/dev/sveltekit_no_root_path/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:336:66)
at respond (file:///Users/jpsimons/dev/sveltekit_no_root_path/node_modules/@sveltejs/kit/src/runtime/server/index.js:287:40)
at async file:///Users/jpsimons/dev/sveltekit_no_root_path/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:406:22
^C
Not sure why anything would be trying to load /, my browser is sitting on the route that exists, i.e. http://localhost:5173/blah
Describe the bug
This is pretty minor, but if you're using adapter-static and building a subtree that you'll be shoehorning into some other legacy app, you might not need the root route
/
. If you don't have one, you get this error every time you restart the dev server and you have a browser window open:Not sure why anything would be trying to load /, my browser is sitting on the route that exists, i.e.
http://localhost:5173/blah
Reproduction
Repro example at https://github.com/johnnysprinkles/sveltekit_no_root_path/commits/main It's just the stock skeleton app with the only route moved down a folder.
Logs
No response
System Info
Severity
annoyance
Additional Information
No response
The text was updated successfully, but these errors were encountered: