create-tsrouter-app scaffold fails out of the box with pnpm on Linux
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- node.js, react, typescript
- Domain
- build-system, cli
Research direction
Start by locating the TanStack Start scaffold template and its package.json dependency definitions, then reproduce the failure with pnpm install and pnpm dev on Linux. Investigate the reported esbuild postinstall and lightningcss native-binary errors; done means a freshly scaffolded project installs and starts without manual dependency changes.
Written by the indexing model from the issue text.
Description
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 installpnpm 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.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 185
- Avg merge
- 18h 45m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from TanStack/cli
-
create: scaffold's unlayered body styles defeat its own @layer base rules (and any shadcn theme) Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 45/100
-
enhancement
Difficulty 3/5 1-2 days Newbie friendliness 58/100
-
Difficulty 4/5 3-5 days Newbie friendliness 68/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
bug v2
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/inspector#2458 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 75/100
railmapgen/rmp-gallery#4068 ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
carbon-design-system/ibm-products#9907 ·