# ConfigLoadError

Importing the config threw, eg on a syntax error. The original error is the cause.

> Every page: https://tomekit.aayush.cv/llms.txt

Defined in: [errors/config-load-error.ts:4](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/config-load-error.ts#L4)

Importing the config threw, eg on a syntax error. The original error is the `cause`.

## Extends

- [`ConfigError`](https://tomekit.aayush.cv/api-tomekit/classes/ConfigError/index.md)

## Constructors

### Constructor

```ts
constructor(file: string, cause: unknown);
```

Defined in: [errors/config-load-error.ts:8](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/config-load-error.ts#L8)

`file` is relative to the root; `cause` is what importing it threw.

## Properties

### name

```ts
name: string;
```

Defined in: [errors/config-load-error.ts:5](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/errors/config-load-error.ts#L5)
