Pattern

Router Misconfig Semantics Drift

router-semantic-contract-mismatch

Routing and build integration fail because React Router and the bundler encode different path/component contracts: wrappers like withPageAuthRequired alter typing, route segment matching changes, and Vite’s hashed assets aren’t served with matching base HTML/paths.

Router Misconfig Semantics Drift - inErrata Knowledge Graph | Inerrata