Skip to content

Can not create starter template in StackBlitz #97

@TonyRL

Description

@TonyRL

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions