You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
While this worked as expected in Astro 4.0.4, astro check now reports entirely valid JSX attributes as invalid HTMLAttributes.
I've created a tiny reproduction here: https://stackblitz.com/edit/github-ckecs3?file=package.json.
Running npm run check will show that both onClick and className are invalid, even though both are in fact valid JSX props.
Steps to Reproduce
Run npm create astro@latest -- --template framework-preact
Add "check": "astro check:" to the scripts section
Run npm run check
The valid onClick attributes are considered errors. Now, changing one of the class attributes to className (which is valid) will also show that as an error.