Velareference

Diagnostics

Every diagnostic code Vela reports, what triggers it, and how to fix the common ones.

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 as compiler-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.

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

CodeFires when
unsupported-utility-familyThe token matches no known utility, usually a typo
no-roblox-equivalentA real Tailwind family Roblox can’t express (tracking-*, blur-*, cursor-*, …). The message names the family
unknown-variantA prefix before : that isn’t a variant. The message lists the valid ones, your breakpoints, and the attr-[…] form
unknown-breakpointmax- before something that isn’t a breakpoint. Check theme.screens
invalid-breakpoint-rangeWidth bounds that can never match, like lg:max-md: or md:max-md:
malformed-attribute-variantAn attr-[…], group-attr-[…] or peer-attr-[…] that doesn’t parse: an open bracket, or no value. The message says which
unsupported-relational-variantA group-* or peer-* reading something a parent or sibling can’t report, like group-md:, or a name with invalid characters
conditional-markerA group or peer marker under a variant, like hover:group. A marker can’t come and go
marker-on-componentA group or peer marker on a component, which has no instance to tag
invalid-custom-variantThe 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-valueA [...] 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-modifierA /N opacity on a family with no transparency. Only placeholder-*

Theme and color

CodeFires when
unknown-theme-keyA color, radius, spacing or font-family key isn’t in the theme
unsupported-color-keycurrent or inherit, or transparent on a property with no transparency
color-missing-shadeA palette used without a shade, when the palette has no DEFAULT
color-invalid-shadeA shade on a plain color, or a shade the palette doesn’t define
unsupported-size-spacing-valueA 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.

CodeFamily
unsupported-border-valueborder-* styles, sides, and unlisted thicknesses
unsupported-stroke-valuering-* / outline-* unlisted values, inset, offset-*
unsupported-rotation-valuerotate-* outside the degree list
unsupported-scale-valuescale-* outside the value list
unsupported-opacity-valueopacity-* that isn’t an integer 0–100
unsupported-aspect-valueaspect-* other than square, video or a valid bracket
unsupported-flex-directionflex-* that’s neither a direction nor a flex-item keyword
unsupported-alignment-valueAn unknown justify-*, items-* or content-*
unsupported-grid-valuegrid-cols-* / grid-rows-* outside 1–12
unsupported-layout-order-valueAn unknown order-*
unsupported-space-valueAn unknown space-x-* / space-y-*
unsupported-margin-valueAn 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-valueAn unknown divide-* value
unsupported-line-height-valueleading-* outside the six named keys
unsupported-text-sizeAn unresolvable text-{size}. Not reachable in practice
unsupported-font-weightAn unknown weight name. Not reachable: see below
unsupported-text-alignmenttext-justify, or align-* other than top, middle or bottom
unsupported-whitespace-valuewhitespace-* other than normal or nowrap
unsupported-gradient-directionbg-gradient-to-{x} outside the eight directions
unsupported-backdrop-blur-valuebackdrop-blur-* other than xs–3xl or none, brackets included. UIBlur has three strengths
unsupported-canvas-size-valuecanvas-* other than auto, auto-x, auto-y or none
unsupported-scrollbar-thicknessAn unknown scrollbar thickness
unsupported-overflow-valueoverflow-* other than hidden, clip or visible
unsupported-anchor-valueorigin-{x} outside the nine origin keys
unsupported-object-fit-valueobject-* other than cover, contain, fill or tile
unsupported-pointer-events-valuepointer-events-* other than none or auto
unsupported-overscroll-valueoverscroll-* other than auto, contain or none
unsupported-scroll-valuescroll-* other than x, y, xy or none. Tailwind’s scroll-smooth and scroll-m-* land here
unsupported-transition-valueAn unknown transition, duration, delay or ease value
unsupported-animation-valueanimate-* 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

CodeFires when
transition-without-runtimetransition, duration-*, ease-* or delay-* on an element with no variants and no dynamic className. Nothing changes, so the tokens are dropped
motion-on-componenttransition-* or animate-* on a component, or motion under a variant there. Motion needs a real instance
explicit-prop-overrides-classA class sets a property the element also sets as a prop. The prop wins everywhere: base, variants and branches
explicit-helper-overrides-classA 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-helperSame, but the compiler can’t tell: the child is conditional, or a variant changes the helper. Both are kept
isolate-not-staticisolate under a variant, in a branch, or in a runtime class value. An instance can’t change class after it’s built
isolate-needs-frameisolate on anything but a frame. Use a <canvasgroup> instead
divide-without-list-layoutdivide-* with no list layout, so separators would pile up in the corner. Add flex, flex-col or space-*
divide-with-griddivide-* next to grid, where each separator would take a cell
divide-unreadable-orderReact 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-richtextunderline or line-through on an element that already sets RichText. Vela leaves your markup alone
classname-on-unsupported-hostBuild only. className on an element that’s neither a supported host nor a component
unsupported-host-utilityEditor only. The utility doesn’t apply to that element
overridden-classEditor 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-classEditor 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

CodeFires when
tsx-parse-failedThe file didn’t parse, or parsed with recovered errors
tsx-emit-failedCode generation failed after a successful transform
invalid-config-jsonThe resolved config is malformed. The file falls back to the default theme
compiler-invocation-failedThe native compiler call threw
runtime-not-installedThe 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-failedThe config failed to resolve. It’s checked on every build, so it fails even when no source file changed
compiler-unavailableThe native compiler couldn’t load
transformed-source-invalidThe 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:

Warns, and the className survives untouched
<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.

A typo
<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:

Compiler output
[@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.

Fails
<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:

Fails, if your brand palette defines only 500 and 700
<frame className="bg-brand" />
Compiler output
[@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:

Fails
<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