Creating a Cloudflare project via pnpm v11 fails out of the box
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 185
- Avg merge
- 18h 45m
- Merged PRs (30d)
- 2
Description
Which project does this relate to?
Create Tanstack App
Describe the bug
If I run
pnpm dlx @tanstack/cli@0.69.5 create tanstack-app --deployment cloudflare --framework react --no-git
using pnpm version >= 11
the process fails with the following error:
[ERR_PNPM_IGNORED_BUILDS] Ignored build scripts: esbuild@0.28.1, sharp@0.34.5, workerd@1.20260708.1
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
Expected behavior
the command should just work and create a functioning app
Platform
- OS: macOS
- pnpm: v11.11.0
Additional context
Very similar to (but not a duplicate of) https://github.com/TanStack/cli/issues/394
I assume that this could be fixed (following https://github.com/TanStack/cli/commit/16fcd674c0f74c1c62cf97b0042060d5a51981ef) by adding appropriate "onlyBuiltDependencies" to the Cloudflare templates
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.
Research direction
Reproduce the failure with the pnpm v11 command, then inspect the Cloudflare templates and compare the dependency approval approach in commit 16fcd674c0f74c1c62cf97b0042060d5a51981ef and issue #394. Done means the command creates a functioning Cloudflare React app without requiring manual build approval.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- build-system, cli, cloud
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 72/100