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
After building a Vite 4 app with multiple routes, serving the build preview results in Cannot GET [route path] when accessing the route directly via URL (not using router Link / navigate)
Describe the bug
After building a Vite 4 app with multiple routes, serving the build preview results in
Cannot GET [route path]
when accessing the route directly via URL (not using routerLink
/navigate
)Your Example Website or App
https://codesandbox.io/p/sandbox/router-build-vite4-build-preview-p1clwt?file=%2Fsrc%2FApp.tsx&selection=%5B%7B%22endColumn%22%3A1%2C%22endLineNumber%22%3A19%2C%22startColumn%22%3A1%2C%22startLineNumber%22%3A19%7D%5D
Steps to Reproduce the Bug or Issue
build
commandpreview
commandpreview
window in a separate tab/params/list
Screen-cast of the process
I've attached a screen-cast of the process on how to reproduce the behaviour via the provided codesanbox
Expected behavior
I expect all routes to be defined and accessible in production build of the app
Screenshots or Videos
router-vite-4-build-preview-404-screencast.mp4
Platform
Additional context
I'm not sure if it's primarily a TS Router bundling issue or a Vite 4 one
The text was updated successfully, but these errors were encountered: