create-hono icon indicating copy to clipboard operation
create-hono copied to clipboard

Can not create starter template in StackBlitz

Open TonyRL opened this issue 9 months ago • 1 comments

Steps to reproduce:

  1. Start a Node.js Blank project in https://stackblitz.com/
  2. Delete everything comes from their template
  3. Run pnpm create hono@latest my-app as stated in the docs.
  4. Pick nodejs template.
  5. See the error prompt.

Error message

❯ pnpm create hono@latest my-app
.../share/pnpm/store/v3/tmp/dlx-13       |   +1 +
.../share/pnpm/store/v3/tmp/dlx-13       | Progress: resolved 1, reused 0, downloaded 1, added 1, done
create-hono version 0.18.0
✔ Using target directory … my-app
✔ Which template do you want to use? nodejs
HookError: [Inquirer] Hook functions can only be called from within a prompt
    at HookError (/home/.local/share/pnpm/store/v3/tmp/dlx-13/node_modules/.pnpm/[email protected]/node_modules/create-hono/bin:12776:17)
    at getStore (/home/.local/share/pnpm/store/v3/tmp/dlx-13/node_modules/.pnpm/[email protected]/node_modules/create-hono/bin:12817:11)
    at clearAll (/home/.local/share/pnpm/store/v3/tmp/dlx-13/node_modules/.pnpm/[email protected]/node_modules/create-hono/bin:12883:19)
    at <anonymous> (/home/.local/share/pnpm/store/v3/tmp/dlx-13/node_modules/.pnpm/[email protected]/node_modules/create-hono/bin:13835:25)
    at  (https://example.w-corp-staticblitz.com/blitz.4d9fd228.js:31:28762)

Node.js v20.19.1

Additional information

  • npm create hono@latest my-app and yarn create hono my-app doesn't work as well.
  • Other templates (aws-lambda, bun, cloudflare-workers, cloudflare-workers+vites, deno, fastly, lambda-edge, nextjs, vercel, cloudflare-pages, x-basic) have the same error.

TonyRL avatar May 07 '25 17:05 TonyRL

Related issues

https://github.com/SBoudrias/Inquirer.js/issues/1426

https://github.com/stackblitz/webcontainer-core/issues/1539 https://github.com/stackblitz/webcontainer-core/issues/1169

EdamAme-x avatar May 10 '25 09:05 EdamAme-x