TanStack / TanStack/cli

Creating a Cloudflare project via pnpm v11 fails out of the box

Open
#484 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.