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
npm init astro
using template <NAME>- âŚ
- âŚ
- âŚ
- 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)
Issue resolved, errors do not occur in v2.6.2, thank you.
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!