-
- Notifications
You must be signed in to change notification settings - Fork 10.7k
Open
Description
Reproduction
- Start an RR app using the Cloudflare template:
npx create-react-router@latest --template remix-run/react-router-templates/cloudflare
-
Open /app/routes/home.tsx.
-
Change an import path to an intentionally incorrect one ("../welcome/welcome" → "/blabla").
-
Start the dev server.
npm run dev
System Info
System: OS: macOS 14.5 CPU: (8) arm64 Apple M3 Memory: 261.56 MB / 16.00 GB Shell: 5.9 - /bin/zsh Binaries: Node: 22.18.0 - ~/.nvm/versions/node/v22.18.0/bin/node npm: 10.9.3 - ~/.nvm/versions/node/v22.18.0/bin/npm Browsers: Chrome: 139.0.7258.68 Safari: 17.5 npmPackages: @react-router/dev: ^7.7.1 => 7.8.0 react-router: ^7.7.1 => 7.8.0 vite: ^6.3.3 => 6.3.5
Used Package Manager
npm
Expected Behavior
I'm expecting the actual build error to be reported:

Actual Behavior
But I get this instead:

Note: if you launch the dev server before changing the import path, it will surface the right error until you reload the page or get a new HMR update.
0ctan33, iiishi9779, roll, albt-revolucao, andonimihai and 2 more