Skip to content
This repository was archived by the owner on Nov 17, 2025. It is now read-only.
This repository was archived by the owner on Nov 17, 2025. It is now read-only.

🐛 BUG: astro check reports incorrect errors on HTMLAttributes #727

@DerYeger

Description

@DerYeger

Describe the Bug

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

  1. Run npm create astro@latest -- --template framework-preact
  2. Add "check": "astro check:" to the scripts section
  3. Run npm run check
  4. 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.

Metadata

Metadata

Assignees

Labels

- P4: importantViolate documented behavior or significantly improves performance (priority)feat: checkIssue in `astro-check` (scope)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions