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
Issue
Using Vite with React Router is loading the assets folder from the deep routes
Steps to Reproduce:
Navigate to frontend "/example/deep/again?something=123
Refresh the page
Expected:
Navigates successfully to https://.github.io//example/deep/again
without any error
Actual:
Navigated successfully to https://.github.io//example/deep/again as blank page WITH errors (This is assumed to be the blank 404.html that was loaded)
Error in browser console:
https://.github.io//example/deep/assets/index-[hash].css (404 NOT FOUND)
https://.github.io//example/deep/assets/index-[hash].js (404 NOT FOUND)
Activity
update - switching from browserRouter to hashRouter instead since spa…
vickbk commentedon Jan 16, 2026
Adding the build.rollupOptions to generate your 404 page should help loading it and processing it successfully