-
-
Notifications
You must be signed in to change notification settings - Fork 10.8k
Closed as not planned
Labels
Description
I'm using React Router as a...
framework
Reproduction
https://github.com/xandris/react-router-middleware-mode
in short, I
npx create-react-router@latest my-react-router-app- updated dependencies (vite 6, express 5)
npm run buildnpm start(works)- wrote a
start.jsthat- creates an express app
- creates a vite server in middleware mode
- adds vite's middleware to the express app
- starts the express app
the express app just gives 404s for any request
System Info
System:
OS: macOS 15.3.1
CPU: (16) arm64 Apple M3 Max
Memory: 640.47 MB / 48.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 22.14.0 - /opt/homebrew/opt/node@22/bin/node
npm: 11.2.0 - /opt/homebrew/bin/npm
pnpm: 9.6.0 - ~/Library/pnpm/pnpm
Browsers:
Chrome: 134.0.6998.89
Safari: 18.3
npmPackages:
@react-router/dev: ~7 => 7.3.0
@react-router/node: ~7 => 7.3.0
@react-router/serve: ~7 => 7.3.0
react-router: ~7 => 7.3.0
vite: ~6 => 6.2.2Used Package Manager
npm
Expected Behavior
the same functionality as react-router dev
Actual Behavior
404s for any GET