InvalidConfigIconLibraryError Class — ui Architecture
Architecture documentation for the InvalidConfigIconLibraryError class in errors.ts from the ui codebase.
Entity Profile
Dependency Diagram
graph TD d0a07e34_9f5b_1e7c_0980_bb0e84055389["InvalidConfigIconLibraryError"] f7f7a7b3_695f_ee49_7087_eefcb981b572["errors.ts"] d0a07e34_9f5b_1e7c_0980_bb0e84055389 -->|defined in| f7f7a7b3_695f_ee49_7087_eefcb981b572 07624763_8a53_88cf_1888_f6561b956f60["constructor()"] d0a07e34_9f5b_1e7c_0980_bb0e84055389 -->|method| 07624763_8a53_88cf_1888_f6561b956f60
Relationship Graph
Source Code
packages/shadcn/src/registry/errors.ts lines 327–345
export class InvalidConfigIconLibraryError extends RegistryError {
constructor(
public readonly iconLibrary: string,
public readonly validOptions: string[]
) {
const message = `Invalid icon library "${iconLibrary}". Valid options are: ${validOptions.join(
", "
)}`
super(message, {
code: RegistryErrorCode.INVALID_CONFIG,
context: { iconLibrary, validOptions },
suggestion: `Update the "iconLibrary" field in your components.json to one of: ${validOptions.join(
", "
)}`,
})
this.name = "InvalidConfigIconLibraryError"
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the InvalidConfigIconLibraryError class?
InvalidConfigIconLibraryError is a class in the ui codebase, defined in packages/shadcn/src/registry/errors.ts.
Where is InvalidConfigIconLibraryError defined?
InvalidConfigIconLibraryError is defined in packages/shadcn/src/registry/errors.ts at line 327.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free