---
url: https://masyaka.github.io/injecute/errors/sealed.md
description: The container is sealed
---

# `INJECUTE_SEALED`

**The container is sealed.**

## How to fix it

Register every service before seal(). To add services later (per request, per test), register them in a fork: app.fork().addInstance(...).

## Handling it in code

```ts
import { InjecuteError } from 'injecute';

try {
  // ...
} catch (error) {
  if (error instanceof InjecuteError && error.code === 'INJECUTE_SEALED') {
    // error.message explains what happened; error.path is the resolution chain
  }
}
```

[All error codes](./index.md)
