Skip to content

[Bug]: Crash: theme.style.keysHelpTip is not a function #9203

@jacksonwelsh

Description

@jacksonwelsh

Describe the bug

tsp init crashes with the following error message:

TypeError: theme.style.keysHelpTip is not a function
    at file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/checkbox/dist/index.js:176:34
    at file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/create-prompt.js:81:38
    at store.handleChange (file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/hook-engine.js:23:17)
    at cycle (file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/hook-engine.js:25:19)
    at file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/create-prompt.js:79:13
    at file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/hook-engine.js:27:16
    at AsyncLocalStorage.run (node:internal/async_local_storage/async_context_frame:63:14)
    at withHooks (file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/hook-engine.js:19:24)
    at prompt (file:///usr/local/lib/node_modules/@typespec/compiler/node_modules/@inquirer/core/dist/lib/create-prompt.js:72:16)
    at checkbox (file:///usr/local/lib/node_modules/@typespec/compiler/dist/src/init/prompts.js:4:12)

Reproduction

Freshly-installed @typespec/compiler, using node v24.11.1 on macOS Tahoe 26.1. No other typespec-related dependencies are installed on this system.

  1. Run tsp init
  2. select Generic REST API
  3. Provide an application name
  4. 💥

Checklist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompiler:coreIssues for @typespec/compiler

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions