Dev Tools · 2h ago
Fix for Tanstack Router + Vite Race Condition on Windows
A race condition in Tanstack Router's file watcher with Vite causes an EPERM error on Windows when creating new routes. The fix involves enabling polling and adjusting stability thresholds in vite.config.ts. This workaround slows route generation but prevents server crashes.
Meridian48 take
The fix is a pragmatic workaround for a known filesystem race, but the underlying issue may resurface for users generating many routes simultaneously.
Read the full reporting
Tanstack Router + Vite race condition in filewatcher (EPERM) →
DEV Community
tanstack-routervite