Title: Create with Storybook add-on hangs on pnpm 11 under “Running commands for Storybook…” · Issue #499 · TanStack/cli · GitHub
Open Graph Title: Create with Storybook add-on hangs on pnpm 11 under “Running commands for Storybook…” · Issue #499 · TanStack/cli
X Title: Create with Storybook add-on hangs on pnpm 11 under “Running commands for Storybook…” · Issue #499 · TanStack/cli
Description: Which project does this relate to? Create Tanstack App Describe the bug If I run TanStack create with the Storybook add-on on pnpm 11, the CLI can appear to hang forever on: Running commands for Storybook... Example (same shape as other ...
Open Graph Description: Which project does this relate to? Create Tanstack App Describe the bug If I run TanStack create with the Storybook add-on on pnpm 11, the CLI can appear to hang forever on: Running commands for St...
X Description: Which project does this relate to? Create Tanstack App Describe the bug If I run TanStack create with the Storybook add-on on pnpm 11, the CLI can appear to hang forever on: Running commands for St...
Opengraph URL: https://github.com/TanStack/cli/issues/499
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create with Storybook add-on hangs on pnpm 11 under “Running commands for Storybook…”","articleBody":"### Which project does this relate to?\n\nCreate Tanstack App\n\n### Describe the bug\n\nIf I run TanStack create with the **Storybook** add-on on **pnpm 11**, the CLI can appear to hang forever on:\n\n`Running commands for Storybook...`\n\nExample (same shape as other create reports; adjust version/flags as needed):\n\n```bash\npnpm dlx @tanstack/cli@latest create tanstack-app \\\n --framework react \\\n --add-ons storybook \\\n --no-git \\\n -y\n```\n\nThe create spinner never finishes that step. What’s actually happening is that TanStack runs the Storybook add-on command (`npx storybook init -y --no-dev` → `pnpm dlx storybook …` for pnpm users) with the spinner still active. On pnpm 11 (TTY + cold dlx cache), **pnpm** waits for interactive approve-builds input for **esbuild**, but that prompt is easy to miss under the spinner — so the TanStack CLI looks stuck.\n\nThis is a TanStack create UX/invocation issue: the parent owns the spinner and how the child is launched. Storybook’s JS has not started yet when the prompt appears, so Storybook cannot surface or answer it.\n\nRelated background (investigation from the Storybook side): https://github.com/storybookjs/storybook/issues/35668 \nRelated (same pnpm 11 build-approval theme, different failure mode — hard `ERR_PNPM_IGNORED_BUILDS` instead of a hang): https://github.com/TanStack/cli/issues/484\n\n### Your Example Website or App\n\nN/A as a hosted app — this is a local TanStack CLI create hang and needs a real TTY (StackBlitz / non-TTY environments won’t show the same interactive approve-builds path).\n\nRepro is the TanStack create command above (or interactive `pnpm dlx @tanstack/cli@latest create` choosing React + Storybook on pnpm 11).\n\n### Steps to Reproduce the Bug or Issue\n\n1. Use **pnpm 11+** in a real terminal (TTY).\n2. Optionally clear the pnpm dlx cache so the approve-builds path is more likely:\n `rm -rf \"$(dirname \"$(pnpm store path)\")/dlx\"`\n3. Run TanStack create with the Storybook add-on, e.g.:\n\n```bash\npnpm dlx @tanstack/cli@latest create tanstack-app \\\n --framework react \\\n --add-ons storybook \\\n --no-git \\\n -y\n```\n\n4. See the CLI sit on `Running commands for Storybook...` / appear hung.\n5. If you look carefully at the terminal (or pause the spinner), pnpm may be waiting on an approve-builds prompt for **esbuild**.\n\n### Expected behavior\n\nAs a user, I expected TanStack create to finish (or show a clear prompt I can answer). Instead it looks stuck on “Running commands for Storybook…” while the child is waiting on stdin.\n\n### Screenshots or Videos\n\n_No response_\n\n### Platform\n\n- OS: macOS (also reported on other setups via the linked Storybook issue)\n- Browser: N/A (CLI)\n- pnpm: 11.18.0\n- Node: 22+ / 24 (see https://github.com/storybookjs/storybook/issues/35668)\n\n### Additional context\n\n**Why this is on TanStack:** create launches the Storybook add-on command and keeps the Clack spinner up for the whole child lifetime. Fixing visibility and/or passing pnpm allow-build flags is in that path (`storybook` add-on `command` + package-manager translation + `runCommandsAndInstallDependencies`).\n\n**Workaround for the underlying pnpm step (verified):** if you run the child yourself,\n\n```bash\npnpm --allow-build=esbuild dlx storybook@latest init -y --no-dev\n```\n\n**Suggested fixes:**\n1. When the package manager is pnpm, run the Storybook add-on command as `pnpm --allow-build=esbuild dlx storybook init -y --no-dev` (flag before `dlx`).\n2. Pause/stop the spinner when the child may need a TTY so pnpm’s approve-builds UI is visible.\n3. Document the workaround until (1) lands.","author":{"url":"https://github.com/ndelangen","@type":"Person","name":"ndelangen"},"datePublished":"2026-07-31T11:46:52Z","url":"https://github.com/TanStack/cli/issues/499"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:46071a88-aa99-1f14-598d-b4cf158df9ef |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3DC:230846:1EED20:2BC9C2:6AF9A4AA |
| html-safe-nonce | 1a76ce3b36d5d178befb4701f5c80602fc6465d4e9db7b4b51a92e49e7b172db |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0RDOjIzMDg0NjoxRUVEMjA6MkJDOUMyOjZBRjlBNEFBIiwidmlzaXRvcl9pZCI6IjU2NjQ1NjkxMjUwOTU3MTE5MTQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e885af8dbd87deb2707c129367cc6ceaed766b5a51ca44a522bc19a83543a9ee |
| hovercard-subject-tag | issue:5029270441 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/TanStack/cli/499/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d73b2d20046229eb7798e28d732ffd259e184c37268949a86325471fe097fab6/TanStack/cli/issues/499 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d73b2d20046229eb7798e28d732ffd259e184c37268949a86325471fe097fab6/TanStack/cli/issues/499 |
| og:image:alt | Which project does this relate to? Create Tanstack App Describe the bug If I run TanStack create with the Storybook add-on on pnpm 11, the CLI can appear to hang forever on: Running commands for St... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ndelangen |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/TanStack/cli git https://github.com/TanStack/cli.git |
| octolytics-dimension-user_id | 72518640 |
| octolytics-dimension-user_login | TanStack |
| octolytics-dimension-repository_id | 932949058 |
| octolytics-dimension-repository_nwo | TanStack/cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 932949058 |
| octolytics-dimension-repository_network_root_nwo | TanStack/cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width