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
Recently my vue projects that are using typescript / volar are littered with JSX errors. It seems that suddenly all my vue-html templates in .vue files are assumed to be written in JSX when in fact I am not passing any lang attribute to the template tag. I get errors like these:
Type '{ 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)
and
JSX element type '__VLS_31' does not have any construct or call signatures.ts(2604)
Thanks
The text was updated successfully, but these errors were encountered:
I have monorepo and in one of packages https://github.com/CKGrafico/inversify-hooks was used. inversify-hooks contains react and @types/react as dependencies. Removing those packages from dependencies fixed the problem.
Hi,
Recently my vue projects that are using typescript / volar are littered with JSX errors. It seems that suddenly all my vue-html templates in .vue files are assumed to be written in JSX when in fact I am not passing any lang attribute to the template tag. I get errors like these:
Type '{ 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)
and
JSX element type '__VLS_31' does not have any construct or call signatures.ts(2604)
Thanks
The text was updated successfully, but these errors were encountered: