# X_PREBUILT_REGISTRY_STALE

## Means

the image's prebuilt module registry does not list the app's modules, so the role scanned instead

## Typical cause

a module added, moved or deleted after x build --target prebuilt ran — the registry is written inside the image build, after COPY . .

## Fix

`edit docker/Dockerfile: move RUN bun node_modules/@ultimat3/cli/src/bin.ts build --target prebuilt after the last COPY in the runtime stage, then rebuild the image`

[CLI and verify](/error-codes#cli-and-verify)
