Errors
Every code Diorama prints in the console, what it means and how to fix it.
Diorama prefixes its console messages with [diorama] or [diorama:plugin] and starts them with a code. In development builds the message ends with the address of its page here. Paste a whole message into search to find its page.
@dioramajs/diorama/assets
| Code | Level | What happened |
|---|---|---|
ASSET_ABORTED | error | An asset lease was released or aborted before the asset finished loading, so its ready promise rejected. |
ASSET_DECODER | error | A compressed model or texture needs a Draco, KTX2 or Meshopt decoder that is blocked, missing or turned off. |
ASSET_LOAD | error | An asset request failed on the network or with an HTTP error, so its lease rejected and nothing was cached. |
ASSET_PARSE | error | An asset downloaded, but its content could not be decoded or parsed, so its lease rejected. |
ASSET_TYPE | warning | Diorama cannot tell what kind of asset a URL is, most often a page address given to preload, so nothing loads for it. |
@dioramajs/diorama/effects
| Code | Level | What happened |
|---|---|---|
EFFECT_COMPILE | error | The surface material with an effect's transforms failed to compile, so the effect is dropped from the surface. |
EFFECT_CORS | error | The image of an effect comes from another origin whose server sends no CORS headers, so its pixels cannot be read. |
EFFECT_DEFINITION | error | An effect definition breaks a rule, such as a reserved param name, so the effect cannot be defined or registered. |
EFFECT_LOAD | error | A lazy chunk did not download, either the engine with three.js or the module of one effect. |
EFFECT_MEDIA | error | The image or video of a media effect has no usable pixels, so the instance failed until the source changes. |
EFFECT_PARAM | warning | A param value or param attribute was rejected, so the effect keeps the value from the layer below it. |
EFFECT_SETUP | error | The setup function of an effect threw or rejected, so that instance failed and its element shows plain DOM. |
EFFECT_TARGET | warning | An effect does not fit the element it is on, or two owners compete for one element, layer or copy. |
EFFECT_UNKNOWN | warning | Markup or code names an effect that is not registered, so the element stays plain DOM. |
EFFECT_UPDATE | error | The update function of an effect threw during a frame, so that instance failed at once. |
RENDER_LOST | error | The GPU device or WebGL context was lost, or rendering was disabled, so every effect switched off and the DOM shows again. |
RENDER_UNAVAILABLE | warning | The browser has neither a WebGPU adapter nor WebGL 2, so effects stay off and nothing of the engine is downloaded. |
@dioramajs/diorama/core
| Code | Level | What happened |
|---|---|---|
EFFECT_OVERRIDE | warning | An effect of your site has the name of a built-in one, so it replaces the built-in everywhere on the page. |
@dioramajs/diorama/glsl
| Code | Level | What happened |
|---|---|---|
GLSL_PRAGMA | error | A `// @diorama` line in a shader sets `when`, `reducedMotion` or `presence` to a value the effect cannot take, so the conversion fails. |
@dioramajs/diorama/transitions
| Code | Level | What happened |
|---|---|---|
TRANSITION_ANIMATE | error | The animate function of a page transition threw or its promise rejected, so every copy landed at once. |
TRANSITION_KEY | warning | Several new elements share one data-dio-key, so the flight lands on the first of them in document order. |
TRANSITION_SWAP | error | The promise returned by the swap function of a page transition rejected, so the transition ended as failed. |
TRANSITION_TIMEOUT | warning | The swap promise of a page transition did not settle within the timeout, so the transition gave up its flights. |