# LoadIssue

A problem a loader found, eg a file whose frontmatter does not parse. tomekit reports it like a schema error.

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

Defined in: [index.ts:148](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L148)

A problem a loader found, eg a file whose frontmatter does not parse. tomekit reports it like a schema error.

## Example

```ts
const pages: Loader = {
  load: () => ({ entries: [], issues: [{ message: "draft has no title. Add one", slug: "draft" }] }),
};
// pages.get("draft"): draft has no title. Add one
```

## Properties

### cause?

```ts
cause?: unknown;
```

Defined in: [index.ts:150](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L150)

What went wrong underneath, eg the error `readFile` threw. Becomes the `ContentError`'s `cause`.

***

### column?

```ts
column?: number;
```

Defined in: [index.ts:152](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L152)

Starts at 1.

***

### file?

```ts
file?: string;
```

Defined in: [index.ts:154](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L154)

The entry's file, relative to the project root.

***

### line?

```ts
line?: number;
```

Defined in: [index.ts:156](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L156)

Starts at 1.

***

### message

```ts
message: string;
```

Defined in: [index.ts:158](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L158)

What went wrong, then what to do, eg `title: expected a string. Add a title`.

***

### slug?

```ts
slug?: string;
```

Defined in: [index.ts:160](https://github.com/aayushbtw/tomekit/blob/main/packages/tomekit/src/index.ts#L160)

The entry's slug, for an entry without a file.
