-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Closed
Copy link
Labels
bugSomething isn't workingSomething isn't workingfeat:spaIssues related to SPA ModeIssues related to SPA Modepackage:devvite
Description
Reproduction
Related to #8145
Dev build issue
- Go to https://stackblitz.com/edit/remix-run-remix-7qirzt
- Open terminal and see dev build fail with:
<Router basename="/test"> is not able to match the URL "/" because it does not start with the basename, so the <Router> won't render anything.
Production build issue
- Open terminal run
npm run buildand see:
Error: SPA Mode: Received a 404 status code from `entry.server.tsx` while generating the `index.html` file.
System Info
Template generated from SPA mode example using nightly build 0.0.0-nightly-f7c2827-20240207Used Package Manager
npm
Expected Behavior
- Dev SPA mode works without having to set Vite's base value
- Production build for SPA works
Actual Behavior
- Dev SPA mode fails with:
<Router basename="/test"> is not able to match the URL "/" because it does not start with the basename, so the <Router> won't render anything.
- Production build fails with:
Error: SPA Mode: Received a 404 status code from `entry.server.tsx` while generating the `index.html` file.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingfeat:spaIssues related to SPA ModeIssues related to SPA Modepackage:devvite