Which project does this relate to?
Router
Describe the bug
Running pnpm install and pnpm dev on a freshly scaffolded TanStack Start project fails immediately without any modifications.
Your Example Website or App
none
Steps to Reproduce the Bug or Issue
Steps to reproduce
- Scaffold a new project using the TanStack Start template
pnpm install
pnpm dev
Expected behavior
Expected behavior
A freshly scaffolded project should work after pnpm install with no manual fixes required.
Screenshots or Videos
No response
Platform
Environment
|
|
| OS |
Linux x64 (Ubuntu) |
| Node |
v22.22.0 |
| pnpm |
v10.30.1 |
@tanstack/react-start |
1.162.4 |
Additional context
First error: esbuild postinstall fails with:
Error: Expected "0.27.3" but got ""
The scaffold pins esbuild@0.27.3 directly in dependencies, which has a broken postinstall script under Node 22.
Second error (after removing esbuild from dependencies and letting it be a transitive dep): lightningcss native binary missing:
Error: Cannot find module '../lightningcss.linux-x64-gnu.node'
pnpm's strict symlinking means the lightningcss-linux-x64-gnu optional dependency binary never gets linked into lightningcss's node/ directory.
Which project does this relate to?
Router
Describe the bug
Running
pnpm installandpnpm devon a freshly scaffolded TanStack Start project fails immediately without any modifications.Your Example Website or App
none
Steps to Reproduce the Bug or Issue
Steps to reproduce
pnpm installpnpm devExpected behavior
Expected behavior
A freshly scaffolded project should work after
pnpm installwith no manual fixes required.Screenshots or Videos
No response
Platform
Environment
@tanstack/react-startAdditional context
First error: esbuild postinstall fails with:
The scaffold pins
esbuild@0.27.3directly independencies, which has a broken postinstall script under Node 22.Second error (after removing esbuild from dependencies and letting it be a transitive dep): lightningcss native binary missing:
pnpm's strict symlinking means the
lightningcss-linux-x64-gnuoptional dependency binary never gets linked intolightningcss'snode/directory.