Skip to content

SW14002: Missing support slot

Your stylesheet has no place for CSS that a feature needs, such as keyframes.

This error occurs when the compiler generates supporting CSS, such as the @keyframes of an animation, but your stylesheet has no slot for it. The message names the missing slot.

Reported

@import "stillwind/utilities.css" layer(utilities);
@import "stillwind/builtins.css";
const fade = style.keyframes({
  to: "opacity-0",
});
style(fade(""));

SW14002: generated support requires an @stillwind-slot keyframes; in the CSS entry graph

Fixed

@import "stillwind/utilities.css" layer(utilities);
@import "stillwind/builtins.css";
@stillwind-slot keyframes;
const fade = style.keyframes({
  to: "opacity-0",
});
style(fade(""));

How to fix

  • Add the slot that the message names, as in the example. stillwind/theme.css contains the theme and keyframes slots.
  • If you do not need a custom selection, import stillwind instead.