Skip to content

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

Description

@dario-piotrowicz

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) #394

I assume that this could be fixed (following 16fcd67) by adding appropriate "onlyBuiltDependencies" to the Cloudflare templates

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions