This page lists every code Vela reports, with fixes for the ones you’ll hit most. Failures that produce no diagnostic at all are in Troubleshooting.
How diagnostics reach you
Vela’s diagnostics appear in your rbxtsc output in this format:
[@vela-rbxts/compiler] unknown-theme-key: Unknown theme key "brand-500" for background color utility in className literal.The bracketed prefix says where it came from:
@vela-rbxts/compiler: a problem in your classes.@vela-rbxts/rbxtsc-host: a problem the adapter found, such ascompiler-invocation-failed.vela-rbxts: the compiler couldn’t load.
Numeric codes are 89000 plus an index, restarting in each file. Change the base with
diagnosticCodeBase. Every code is a warning unless listed under
Errors, except the editor-only canonical-class, which is info. In the editor you can
change any code’s level with velaRbxts.lint.
An error fails the build. The file isn’t emitted. Under the CLI, vela build writes nothing to
.vela/src for that file, removes any earlier output for it, and exits 1.
Some roblox-ts builds don’t expose context.addDiagnostic, and then every Vela warning is silently dropped. Test with className="bg-nope-500".
If roblox-ts can’t take an error that way, the plugin throws instead, so errors are never lost.
Where the underline lands
Read the message, not the underline. A token in a plain string className gets its exact position,
and so does tsx-parse-failed. For a computed className, Vela underlines the first place the
token’s text appears in the file, which may be an unrelated comment. A diagnostic with no token
lands at the top of the file. classname-on-unsupported-host gets an exact range on a string
literal and the top of the file on a computed expression.
Code table
Families, variants, and payload shapes
| Code | Fires when |
|---|---|
unsupported-utility-family | The token matches no known utility, usually a typo |
no-roblox-equivalent | A real Tailwind family Roblox can’t express (tracking-*, blur-*, cursor-*, …). The message names the family |
unknown-variant | A prefix before : that isn’t a variant. The message lists the valid ones, your breakpoints, and the attr-[…] form |
unknown-breakpoint | max- before something that isn’t a breakpoint. Check theme.screens |
invalid-breakpoint-range | Width bounds that can never match, like lg:max-md: or md:max-md: |
malformed-attribute-variant | An attr-[…], group-attr-[…] or peer-attr-[…] that doesn’t parse: an open bracket, or no value. The message says which |
unsupported-relational-variant | A group-* or peer-* reading something a parent or sibling can’t report, like group-md:, or a name with invalid characters |
conditional-marker | A group or peer marker under a variant, like hover:group. A marker can’t come and go |
marker-on-component | A group or peer marker on a component, which has no instance to tag |
invalid-custom-variant | The config defines a variant it can’t register. group, peer, and names starting group- or peer- are reserved, and defineConfig throws on them too |
unsupported-arbitrary-value | A [...] value the family can’t read: w-[abc], bg-[notacolor], font-[600]. Spaces inside brackets don’t split the token, so w-[calc(100% - 4px)] reports once. See arbitrary values |
unsupported-opacity-modifier | A /N opacity on a family with no transparency. Only placeholder-* |
Theme and color
| Code | Fires when |
|---|---|
unknown-theme-key | A color, radius, spacing or font-family key isn’t in the theme |
unsupported-color-key | current or inherit, or transparent on a property with no transparency |
color-missing-shade | A palette used without a shade, when the palette has no DEFAULT |
color-invalid-shade | A shade on a plain color, or a shade the palette doesn’t define |
unsupported-size-spacing-value | A spacing value used for a size isn’t offset-only |
Per-value rejections
Each family with a fixed set of values has its own code, so the message says which family rejected what.
| Code | Family |
|---|---|
unsupported-border-value | border-* styles, sides, and unlisted thicknesses |
unsupported-stroke-value | ring-* / outline-* unlisted values, inset, offset-* |
unsupported-rotation-value | rotate-* outside the degree list |
unsupported-scale-value | scale-* outside the value list |
unsupported-opacity-value | opacity-* that isn’t an integer 0–100 |
unsupported-aspect-value | aspect-* other than square, video or a valid bracket |
unsupported-flex-direction | flex-* that’s neither a direction nor a flex-item keyword |
unsupported-alignment-value | An unknown justify-*, items-* or content-* |
unsupported-grid-value | grid-cols-* / grid-rows-* outside 1–12 |
unsupported-layout-order-value | An unknown order-* |
unsupported-space-value | An unknown space-x-* / space-y-* |
unsupported-margin-value | An unknown margin value |
unsupported-negative-margin | -mr-* or -mb-*. Only top and left margins can be negative. Each side holds one signed value, and the last class wins. See margin |
unsupported-divide-value | An unknown divide-* value |
unsupported-line-height-value | leading-* outside the six named keys |
unsupported-text-size | An unresolvable text-{size}. Not reachable in practice |
unsupported-font-weight | An unknown weight name. Not reachable: see below |
unsupported-text-alignment | text-justify, or align-* other than top, middle or bottom |
unsupported-whitespace-value | whitespace-* other than normal or nowrap |
unsupported-gradient-direction | bg-gradient-to-{x} outside the eight directions |
unsupported-backdrop-blur-value | backdrop-blur-* other than xs–3xl or none, brackets included. UIBlur has three strengths |
unsupported-canvas-size-value | canvas-* other than auto, auto-x, auto-y or none |
unsupported-scrollbar-thickness | An unknown scrollbar thickness |
unsupported-overflow-value | overflow-* other than hidden, clip or visible |
unsupported-anchor-value | origin-{x} outside the nine origin keys |
unsupported-object-fit-value | object-* other than cover, contain, fill or tile |
unsupported-pointer-events-value | pointer-events-* other than none or auto |
unsupported-overscroll-value | overscroll-* other than auto, contain or none |
unsupported-scroll-value | scroll-* other than x, y, xy or none. Tailwind’s scroll-smooth and scroll-m-* land here |
unsupported-transition-value | An unknown transition, duration, delay or ease value |
unsupported-animation-value | animate-* outside the presets |
Z-index has four codes: z-auto is unsupported-z-index-auto, -z-N is
unsupported-negative-z-index, z-[1.5] is unsupported-arbitrary-z-index, and any other
unbracketed number is unsupported-z-index-value. A whole-number z-[15] works.
font-* never reaches unsupported-font-weight. Anything that isn’t a weight name is read as a
theme.fontFamily key, so font-nope, font-600 and
font-extrablack all report unknown-theme-key.
Contextual warnings
| Code | Fires when |
|---|---|
transition-without-runtime | transition, duration-*, ease-* or delay-* on an element with no variants and no dynamic className. Nothing changes, so the tokens are dropped |
motion-on-component | transition-* or animate-* on a component, or motion under a variant there. Motion needs a real instance |
explicit-prop-overrides-class | A class sets a property the element also sets as a prop. The prop wins everywhere: base, variants and branches |
explicit-helper-overrides-class | A class builds a helper, like the UICorner from rounded-lg, that the element already has as a child. Your child wins. UIShadow children are exempt, since shadows stack |
possible-duplicate-helper | Same, but the compiler can’t tell: the child is conditional, or a variant changes the helper. Both are kept |
isolate-not-static | isolate under a variant, in a branch, or in a runtime class value. An instance can’t change class after it’s built |
isolate-needs-frame | isolate on anything but a frame. Use a <canvasgroup> instead |
divide-without-list-layout | divide-* with no list layout, so separators would pile up in the corner. Add flex, flex-col or space-* |
divide-with-grid | divide-* next to grid, where each separator would take a cell |
divide-unreadable-order | React only. A child of a divided list has order-* under a variant, in a branch, or in a runtime value. Separators follow the static order |
decoration-on-richtext | underline or line-through on an element that already sets RichText. Vela leaves your markup alone |
classname-on-unsupported-host | Build only. className on an element that’s neither a supported host nor a component |
unsupported-host-utility | Editor only. The utility doesn’t apply to that element |
overridden-class | Editor only. A later class under the same condition overrides this one, like bg-red-500 in bg-red-500 bg-blue-500. See editor setup |
canonical-class | Editor only, info. An arbitrary value lowers exactly like a named class, like w-[16px] for w-4. The quickfix writes the name. See editor setup |
Errors
| Code | Fires when |
|---|---|
tsx-parse-failed | The file didn’t parse, or parsed with recovered errors |
tsx-emit-failed | Code generation failed after a successful transform |
invalid-config-json | The resolved config is malformed. The file falls back to the default theme |
compiler-invocation-failed | The native compiler call threw |
runtime-not-installed | The file imports a runtime that node_modules/@rbxts doesn’t have, or has at a different version from the compiler. The message names each package. See installation |
config-resolution-failed | The config failed to resolve. It’s checked on every build, so it fails even when no source file changed |
compiler-unavailable | The native compiler couldn’t load |
transformed-source-invalid | The lowered file doesn’t parse, so it isn’t emitted. This is a Vela bug: report it with the file’s className usage |
compiler-invocation-failed on the first file, with this message, means TypeScript 7:
Cannot read properties of undefined (reading 'Latest')Install typescript@5.9.3. Anything else under this code means the native binding failed to load
or threw.
classname-on-unsupported-host
Vela only lowers className on the eight supported host elements and on components. Anything else
keeps the attribute and warns:
<screengui className="bg-slate-700" />That includes lowercase elements like screengui and namespaced tags like <svg:rect />. The
message names only the part after the colon, so <svg:rect /> is reported as rect. Move the
classes onto a frame inside, or onto a component that forwards them.
This code only appears in builds, never in the editor.
unsupported-host-utility
This code only appears in the editor. <frame className="text-red-500" /> builds without complaint
and writes TextColor3 onto a Frame. It’s never raised on a component, since Vela can’t know what
<Panel /> renders.
On the runtime path, the same utility is dropped silently instead. Neither path warns at build time.
The ones you will actually hit
unsupported-utility-family
Vela doesn’t recognize the class, usually because of a typo. The token is dropped and the rest of the element compiles.
<frame className="shadwo-lg rounded-lg" />rounded-lg applies, and shadwo-lg warns. The same code covers typos and unknown families, so
check the spelling before deciding a feature is missing.
no-roblox-equivalent
The class is real Tailwind, but Roblox UI can’t express it:
[@vela-rbxts/compiler] no-roblox-equivalent: Tailwind "tracking" utilities have no Roblox equivalent, so "tracking-wide" is ignored.The not-implemented table gives the reason for each family and what to use instead.
unknown-theme-key
The class parsed, but the key isn’t in your theme. The message names the scale it searched.
<frame className="rounded-huge p-0.25" />huge isn’t a radius key. Add it under theme.extend.radius, or use 4xl. p-0.25 fails because
spacing only accepts multiples of 0.5. Use p-0.5.
A color you defined can still report this. A top-level theme.colors in your config silently
discards theme.extend.colors. See merge semantics.
color-missing-shade
You used a palette without a shade, and the palette has no DEFAULT:
<frame className="bg-brand" />[@vela-rbxts/compiler] color-missing-shade: Color palette "brand" for background color utility has no "DEFAULT" shade, so it requires an explicit shade such as "brand-500" in className literal.Write bg-brand-500, or add a DEFAULT key to the palette. Built-in palettes all have one, so
bg-slate works. Plain colors like black and white never need a shade.
color-invalid-shade
You gave a plain color a shade, or asked a palette for a shade it doesn’t have:
<frame className="bg-white-500 text-brand-400" />Write bg-white. For text-brand-400, add 400 to the palette or use a shade you defined. Vela
doesn’t fill in missing shades.
Editor-only filtering
While you type, the editor hides unknown-theme-key if what you’ve typed could still become a real
key. bg-sla shows nothing on the way to bg-slate-800, but bg-nope warns at once.
So a wrong key that happens to be the start of a real one, like bg-slat, looks fine in the editor.
The build still warns. No other code is filtered.
See also
- Utility reference for the values each family accepts.
- Editor setup for getting these into your editor.
- Troubleshooting for failures that produce no diagnostic.