Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Volar seems to think that all my .vue components are written in JSX #558

Closed
marto opened this issue Oct 5, 2021 · 5 comments
Closed

Volar seems to think that all my .vue components are written in JSX #558

marto opened this issue Oct 5, 2021 · 5 comments
Labels
duplicate This issue or pull request already exists

Comments

@marto
Copy link

marto commented Oct 5, 2021

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

@johnsoncodehk
Copy link
Member

Hi @marto, this problem fixed in b253b2c, please wait for release for use 0.27.26 for now.

@johnsoncodehk
Copy link
Member

Duplicate of #553

@johnsoncodehk johnsoncodehk marked this as a duplicate of #553 Oct 5, 2021
@johnsoncodehk johnsoncodehk added the duplicate This issue or pull request already exists label Oct 5, 2021
@marto
Copy link
Author

marto commented Oct 5, 2021

Thanks @johnsoncodehk

@Idered
Copy link

Idered commented Oct 27, 2021

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.

@johnsoncodehk
Copy link
Member

@Idered See #592

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants