---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/generation/transformers_js/exceptions/variables/E_TRANSFORMERS_JS_GENERATION_ENGINE_ERROR.md
description: >-
  Thrown when the transformers.js model/processor fail to load (e.g. the
  `@huggingface/transformers` peer is not installed), the `generate_images` call
  throws, or the result is malformed/empty (no images returned is an engine
  failure, not a valid empty result). Non-fatal. Printf arg: `[detail]`.
---

# Variable: E\_TRANSFORMERS\_JS\_GENERATION\_ENGINE\_ERROR

```ts
const E_TRANSFORMERS_JS_GENERATION_ENGINE_ERROR: CreatedException<[string]>;
```

Defined in: [src/batteries/generation/transformers\_js/exceptions.ts:37](https://github.com/NHTIO/ADK/blob/v1.20261103.0/src/src/batteries/generation/transformers_js/exceptions.ts#L37)

Thrown when the transformers.js model/processor fail to load (e.g. the `@huggingface/transformers`
peer is not installed), the `generate_images` call throws, or the result is malformed/empty (no
images returned is an engine failure, not a valid empty result). Non-fatal. Printf arg: `[detail]`.
