"Cannot use 'in' operator to search for '.' in ./index.js"
I'm running into an issue with my monorepo setup using TanStack React Start and could really use some help.
My Setup:
- Monorepo with pnpm workspaces and Turbo
- TanStack React Start v1.130.12
- Vite v7.0.6
- Node v22.16.0
- React 19.1.1
Relevant package.json dependencies:
vite.config.ts:
3 Replies
itchy-amethystOP•4w ago
❌ Full Error Stack:
What I've tried:
- Cleared node_modules and reinstalled dependencies
- Verified all catalog versions are consistent across workspace
- Using customViteReactPlugin: true as recommended
We temporarily removed the TanStack Start plugin from vite.config.ts and the dev server started working perfectly. This confirms the issue is 100% with the TanStack React Start plugin's vitefu package crawling functionality in monorepo setups.
However, removing TanStack Start means the application doesn't load at all since the entire app was built using TanStack Start architecture.
eastern-cyan•4w ago
GitHub
Release v1.130.14 · TanStack/router
Version 1.130.14 - 8/2/25, 5:03 AM
Changes
Fix
account for exports being a string (#4859) (6e191fd) by Manuel Schiller
Docs
start: fix cloudflare-workers deployment using wrangler.toml (#4779) (...
itchy-amethystOP•4w ago
Thanks. The problem is solved