Skip to content

Assets 404 not found with Vite + React Router #68

@lightzane

Description

@lightzane

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions