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.csscontains thethemeandkeyframesslots. - If you do not need a custom selection, import
stillwindinstead.