Skip to content
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

Assets 404 not found with Vite + React Router #68

Open
lightzane opened this issue Mar 24, 2024 · 0 comments
Open

Assets 404 not found with Vite + React Router #68

lightzane opened this issue Mar 24, 2024 · 0 comments

Comments

@lightzane
Copy link

Issue
Using Vite with React Router is loading the assets folder from the deep routes

Steps to Reproduce:

  1. Navigate to frontend "/example/deep/again?something=123
  2. 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)

lightzane pushed a commit to lightzane/draft-test-labs that referenced this issue Mar 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant