React router dom with Vite got inconsistent behavior while running in development vs build
I’m using react router v6 with Vite as bundler and encountered the following problem:
I’m using react router v6 with Vite as bundler and encountered the following problem: