T
TanStack3mo ago
firm-tan

The split value for the virtual route

Just start using tanstack start and got an error
[vite] Internal server error: The split value for the virtual route "/node_modules/.pnpm/vite@6.0.11_@types+node@22.15.17_jiti@2.4.2_sass@1.78.0_terser@5.37.0_tsx@4.20.3_yaml@2.8.0/node_modules/vite/dist/client/client.mjs" was not found.
Plugin: tanstack-router:code-splitter:compile-virtual-file
File: /node_modules/.pnpm/vite@6.0.11_@types+node@22.15.17_jiti@2.4.2_sass@1.78.0_terser@5.37.0_tsx@4.20.3_yaml@2.8.0/node_modules/vite/dist/client/client.mjs
[vite] Internal server error: The split value for the virtual route "/node_modules/.pnpm/vite@6.0.11_@types+node@22.15.17_jiti@2.4.2_sass@1.78.0_terser@5.37.0_tsx@4.20.3_yaml@2.8.0/node_modules/vite/dist/client/client.mjs" was not found.
Plugin: tanstack-router:code-splitter:compile-virtual-file
File: /node_modules/.pnpm/vite@6.0.11_@types+node@22.15.17_jiti@2.4.2_sass@1.78.0_terser@5.37.0_tsx@4.20.3_yaml@2.8.0/node_modules/vite/dist/client/client.mjs
this is not a first issue with "The split value for the virtual route "
12 Replies
foreign-sapphire
foreign-sapphire3mo ago
can you share a complete reproducer? e.g. a github repo
typical-coral
typical-coral3mo ago
also getting this with pnpm it comes with the error Error: The split value for the virtual route "/~start/server-entry.tsx" was not found.
foreign-sapphire
foreign-sapphire3mo ago
a reproducer would be helpful to spot the issue
typical-coral
typical-coral3mo ago
I can see if i can reproduce. FWIW the code works perfectly after building with nitro and running the output. its only on vite dev. When I open the localhost it sends that message with nothing
foreign-sapphire
foreign-sapphire3mo ago
it would already help if you can send a full debug log
export TSR_VITE_DEBUG=true
export TSR_VITE_DEBUG=true
enables this
typical-coral
typical-coral3mo ago
in my env or the root?
foreign-sapphire
foreign-sapphire3mo ago
if you are on mac/linux, just run this and then vite dev
typical-coral
typical-coral3mo ago
foreign-sapphire
foreign-sapphire3mo ago
that'S on macOS, right? oh it might be a too old vite version can you upgrade to latest vite version?
typical-coral
typical-coral3mo ago
That is on macOS yes. let me try. it looks like that is it. I am trying to install 6.3.5, but maybe one of my other dependencies is preventing the latest from being installed?
WARN  Issues with peer dependencies found
apps/web
├─┬ @vitejs/plugin-react 4.5.2
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ vite-tsconfig-paths 5.1.4
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/react-start 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ @tanstack/start-server-functions-client 1.121.21
│ └─┬ @tanstack/server-functions-plugin 1.121.21
│ └─┬ @tanstack/directive-functions-plugin 1.121.21
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/react-start-plugin 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/start-plugin-core 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ @tanstack/router-plugin 1.121.21
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ nitropack 2.11.12
└─┬ unstorage 1.16.0
└── ✕ unmet peer @netlify/blobs@"^6.5.0 || ^7.0.0 || ^8.1.0": found 10.0.0
WARN  Issues with peer dependencies found
apps/web
├─┬ @vitejs/plugin-react 4.5.2
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ vite-tsconfig-paths 5.1.4
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/react-start 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ @tanstack/start-server-functions-client 1.121.21
│ └─┬ @tanstack/server-functions-plugin 1.121.21
│ └─┬ @tanstack/directive-functions-plugin 1.121.21
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/react-start-plugin 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ @tanstack/start-plugin-core 1.121.21
├── ✕ unmet peer vite@6.1.0: found 6.3.5
├─┬ @tanstack/router-plugin 1.121.21
│ └── ✕ unmet peer vite@6.1.0: found 6.3.5
└─┬ nitropack 2.11.12
└─┬ unstorage 1.16.0
└── ✕ unmet peer @netlify/blobs@"^6.5.0 || ^7.0.0 || ^8.1.0": found 10.0.0
It looks like some of these expect 6.1.0 and not the latest version that was it. I did have a override in my root package.json maybe from a previous workaround
foreign-sapphire
foreign-sapphire3mo ago
nice
firm-tan
firm-tanOP3mo ago
thanks for reply, but it was my mistake because I had custom router.tsx in nexted directory i fixed it

Did you find this page helpful?