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
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
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
- Go to https://stackblitz.com/edit/meehep-hzppdu?file=vite.config.js
- In console,
npm run build - 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