Skip to content

SW32001: CSS imports need host resolution

A stylesheet with @import was loaded through an API that cannot resolve imports.

This error occurs when a stylesheet that contains @import is passed to an API that loads a single stylesheet. That API cannot read other files, so it cannot resolve the import.

How to fix

  • With an official integration, update the Stillwind packages. If the error remains, report it with your stylesheet.
  • In your own integration, load stylesheets with NativeDesignSystemLoader, and answer each import request. Only imported stylesheets may be answered as unresolved; the root stylesheet must exist.