Home / Class/ ConfigMissingError Class — ui Architecture

ConfigMissingError Class — ui Architecture

Architecture documentation for the ConfigMissingError class in errors.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  aea87eac_82ab_fba8_6644_60fae9ff1c00["ConfigMissingError"]
  f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"]
  aea87eac_82ab_fba8_6644_60fae9ff1c00 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572
  eaf41496_a839_c17f_ae87_768777c5ded3["constructor()"]
  aea87eac_82ab_fba8_6644_60fae9ff1c00 -->|method| eaf41496_a839_c17f_ae87_768777c5ded3

Relationship Graph

Source Code

packages/shadcn/src/registry/errors.ts lines 254–266

export class ConfigMissingError extends RegistryError {
  constructor(public readonly cwd: string) {
    const message = `No components.json found in ${cwd} or parent directories.`

    super(message, {
      code: RegistryErrorCode.NOT_CONFIGURED,
      context: { cwd },
      suggestion:
        "Run 'npx shadcn@latest init' to create a components.json file, or check that you're in the correct directory.",
    })
    this.name = "ConfigMissingError"
  }
}

Frequently Asked Questions

What is the ConfigMissingError class?
ConfigMissingError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is ConfigMissingError defined?
ConfigMissingError is defined in packages/shadcn/src/registry/errors.ts at line 254.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free