Creating a Cloudflare project via pnpm v11 fails out of the box
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.3k
- Forks
- 185
- Ø Merge
- 18 Std. 45 Min.
- Gemergte PRs (30 T.)
- 2
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere den Fehler mit dem pnpm-v11-Befehl, untersuche anschließend die Cloudflare-Templates und vergleiche den Ansatz zur Genehmigung von Abhängigkeiten in Commit 16fcd674c0f74c1c62cf97b0042060d5a51981ef und Issue #394. Als erledigt gilt die Aufgabe, wenn der Befehl eine funktionierende Cloudflare-React-App erstellt, ohne eine manuelle Build-Genehmigung zu erfordern.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- react, typescript
- Bereich
- build-system, cli, cloud
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 72/100