bug: warnings when compiling Ionic css with lightningcss - ionic outputs deprecated host-context pseudo-class

Author: aehardingCreated Nov 19, 2024Updated Sep 26, 2026
Labelspackage: coretype: bug

Prerequisites

Ionic Framework Version

v8.x

Current Behavior

When I compile Ionic Framework's css with lightningcss, I see the following error multiple times:

'host-context' is not recognized as a valid pseudo-class. Did you mean '::host-context' (pseudo-element) or is this a typo?

Expected Behavior

No warnings

Steps to Reproduce

  1. Go to https://stackblitz.com/edit/meehep-hzppdu?file=vite.config.js
  2. In console, npm run build
  3. See warnings

Code Reproduction URL

https://stackblitz.com/edit/meehep-hzppdu?file=vite.config.js

Ionic Info

Latest stackblitz

Additional Information

No response

Source: ionic-team/ionic-framework