language-tools: 🐛 BUG: typing error in astro components after updating to version 2.6.0 vscode extension

Describe the Bug

After updating to the latest version, typing errors are occurring:

Error in astro component

https://github.com/withastro/language-tools/assets/6271023/07cb48fb-e216-4df0-98c5-82576ca224c4

Type ‘{ children: Element[]; class: string; }’ is not assignable to type ‘DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>’.> Property ‘class’ does not exist on type ‘DetailedHTMLProps<HTMLAttributes<HTMLDivElement>, HTMLDivElement>’. Did you mean ‘className’?ts(2322)

Type ‘{ children: Element; title: string; }’ is not assignable to type ‘IntrinsicAttributes & Props’. Property ‘children’ does not exist on type ‘IntrinsicAttributes & Props’.ts(2322)

Steps to Reproduce

  1. npm init astro using template <NAME>
  2. …
  3. …
  4. …
  5. Error! Describe what went wrong (and what was expected instead)…

About this issue

  • Original URL
  • State: closed
  • Created 6 months ago
  • Comments: 15 (7 by maintainers)

Most upvoted comments

Issue resolved, errors do not occur in v2.6.2, thank you.

Just released 2.6.2 that seems to work for me locally, let me know how that works!

Its works pretty for me. Thanks again.

Just released 2.6.2 that seems to work for me locally, let me know how that works!

I found the issue, I couldn’t reproduce it because it only happens in the deployed version and not the dev version I was using. Will release another patch shortly, sorry for the inconvenience!