I have the same issue. After updating Vite to version "vite": "5.4.12", this error occurs. On version 5.4.11, everything works fine.