Error codes › ui-env

Error codes

ui-env

error hint The product's user interface

What it means#

An environment value that does not hold: env.x that neither the device (env.width, env.theme, env.locale…) nor the ui's environment has, a provide of a value the ui does not declare, of the wrong type, of the device's, or of an expression it cannot read when shown; an environment named as the device's, or with no value; one nothing reads (a hint). docs/ui.md.

How to fix it#

The message says what is wrong and where, and often what was meant (Did you mean …?). Change the model so that what this page describes no longer holds, then check again: archec check main.arche.

archec check --beginner says the most common messages in plain words, with the names that exist.

The automatic fix#

archec has no fix of its own for this code. When the message says Did you mean …?, VS Code offers that change (Quick Fix).

In the terminal#

archec explain ui-env prints this explanation; archec explain ui lists the codes of its area.