# TS1146: Declaration expected.

> The parser expected a declaration here, for example after `export` or a decorator, but found something else.

## What it means

Some keywords must be followed by a declaration: `export` (unless it's `export { ... }` or
`export default`), `declare`, and decorators. This is reported when the next token can't start
one.

## Example

```ts
export namespace N { export 1 }
```

## How to fix

- Complete the declaration: `export const one = 1`.
- Remove the stray `export`, `declare` or decorator.

Source: https://ts-r.dev/errors/TS1146/
