A compiler error stops the compilation of a module. Unlike a lint finding, you cannot turn it off or suppress it with a comment. Each error page explains what causes the error and how to fix it.
The first digits of a code tell you what to do next:
| Codes | What to do |
|---|---|
| SW01xxx – SW03xxx | Fix stillwind.config.ts or the integration options |
| SW10xxx – SW15xxx | Fix your components, style() calls, or stylesheet |
| SW30xxx – SW34xxx | Check your integration, or report a bug |
| SW90xxx | Report a bug |
Fix the configuration
- SW01001: Invalid property prefix
- SW01002: Invalid hash length
- SW01003: Invalid lint configuration
- SW02001: Framework constraint conflict
- SW02002: Unresolved root stylesheet
- SW03001: Generated identifier collision
- SW03002: Identifier generator failed
- SW03003: Theme variable collision
Fix your components and style() calls
- SW10001: JavaScript parse error
- SW10002: Invalid component syntax
- SW10003: Invalid Unicode string
- SW10004: Unconsumed macro use
- SW10005: Untransformed macro reference
- SW11001: Style composition cycle
- SW11002: CSS module ordering cycle
- SW11003: Unavailable style base
- SW12001: Incompatible declaration assignment
- SW12002: Declaration identities unavailable
Fix your stylesheet
- SW13001: Authored CSS parse error
- SW13002: Unterminated CSS block
- SW13003: Invalid CSS block
- SW13004: CSS nesting limit exceeded
- SW14001: Missing utilities slot
- SW14002: Missing support slot
- SW14003: Malformed property requirement
- SW14004: Malformed utility property requirement
- SW14005: Required property is unregistered
- SW14006: Property-usage parse failure
- SW14007: Malformed theme reference
- SW14008: Circular utility application
- SW15001: CSS offset exceeds source coordinates
- SW15002: Rendered source is too large
- SW15003: Source size or offset is too large
Check your integration
These errors come from the connection between the compiler and the build tool or the editor. With an official integration, update the Stillwind packages first. If the error remains, report it as a bug. If you write your own integration, the error page explains which input to fix.
Type information
- SW30001: TypeScript checker facts required
- SW30002: Invalid or stale TypeScript facts
- SW30003: Incompatible symbolic fact kinds
- SW30004: Checker expression unavailable
Vue, Svelte, and Astro components
- SW31001: Invalid projection map
- SW31002: Ambiguous or missing original range
- SW31003: Projection content mismatch
- SW31004: Invalid converter output syntax
- SW31005: Component projection preparation failed
- SW31006: Invalid UTF-16 offset
- SW31007: Invalid UTF-16 position
- SW31008: Invalid UTF-8 offset
- SW31009: Unmapped macro binding read
- SW31010: Edit outside an editable projection region
- SW31011: Attribute quote mismatch
Stylesheet loading and source files
- SW32001: CSS imports need host resolution
- SW32002: Invalid initial CSS batch
- SW32003: Unknown or duplicate CSS request
- SW32004: Conflicting CSS source
- SW32005: CSS loader already completed
- SW32006: CSS request IDs exhausted
- SW32007: CSS source IDs exhausted
- SW33001: Original map on an internal source
- SW33002: Invalid source byte range
- SW33003: Span belongs to another file
- SW33004: Invalid source span
- SW33005: Invalid source byte offset
Code transformation
- SW34001: Missing macro import anchor
- SW34002: Missing module CSS target
- SW34003: Transform requested after failed compilation
Report a bug
These errors mean that the compiler produced an inconsistent result. Please open an issue with the error message and, if possible, the source that causes it.
- SW90001: Invalid generated CSS block
- SW90002: Missing retained rule
- SW90003: Inconsistent internal CSS graph
- SW90004: Inconsistent macro import metadata
- SW90005: Macro anchor removal edit missing
- SW90006: Invalid transform expression mapping
- SW90007: Overlapping source replacements
- SW90008: Invalid compiler-produced source coordinates