TanStack / TanStack/cli

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

オープン
#484 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
TypeScript
スター
1.3k
フォーク
185
平均マージ
18時間 45分
マージ済み PR(30日)
2

説明

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. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

pnpm v11 コマンドで失敗を再現し、次に Cloudflare のテンプレートを調査して、commit 16fcd674c0f74c1c62cf97b0042060d5a51981ef と issue #394 における依存関係の承認アプローチを比較します。コマンドによって、手動での build の承認を必要とせずに、動作する Cloudflare React アプリが作成されれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
react, typescript
領域
build-system, cli, cloud
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
静か
明瞭さ
おおむね明確
初心者へのやさしさ
72/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。