Skip to content
Source
Sign inSign up
TanStack/cli

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

Send to my agent
Closeddario-piotrowicz(GitHub profile, opens in a new tab) opened this issue 1 comment

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

  1. Thanks for reporting this and sending the original fix. This is fixed in CLI 0.72.7 with engine 0.71.7 through #485.

    AI review notes: All seven actual release artifacts were downloaded and checked for integrity and package contents. The public CLI now generates the esbuild, lightningcss, sharp and workerd approvals in pnpm-workspace.yaml for both React and Solid Cloudflare projects, while retaining the legacy approvals for pnpm 9 and 10.

    Harmless loopback lifecycle controls passed across pnpm 9.15.5, 10.25.0, 10.26.0 and 11.22.0 for both frameworks. The actual public CLI also generated React/pnpm 9 and Solid/pnpm 11 apps that passed installation, adding a new dependency, build, types, SSR and a hydrated browser interaction. Cloudflare configuration was checked without installing or invoking deployment tools. No provider deployment is claimed.

    Please reopen with the full output if this still happens on the latest version.

  2. tannerlinsley closed this

Sign in to join this conversation.