# TS4112: This member cannot have an 'override' modifier because its containing class '…' does not extend another class.

> A member has the override modifier but its class doesn't extend another class. Remove override, or add the missing extends.

## What it means

`override` says the member replaces one from a base class. A class with no `extends` clause has
no base class, so nothing can be overridden.

## Example

```ts
class Logger {
  override log() {}
}
export {};
```

## How to fix

- Remove `override`.
- Or add the `extends` clause you meant to write.

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