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

JSX issue when using in Vue 3 with Typescript #173

Closed
MikesGlitch opened this issue Dec 24, 2021 · 8 comments
Closed

JSX issue when using in Vue 3 with Typescript #173

MikesGlitch opened this issue Dec 24, 2021 · 8 comments

Comments

@MikesGlitch
Copy link

MikesGlitch commented Dec 24, 2021

Description

When using the vue3 package FullCalendar component (with typescript), VSCode comes up with the following error.
Property 'template' does not exist on type 'JSX.IntrinsicElements'.ts(2339)

image

Replication

Open the fullcalendar-example-projects repository - go to the vue3-typescript folder (https://github.com/fullcalendar/fullcalendar-example-projects/tree/master/vue3-typescript)

Open it in VsCode

Observe on line 115 - vue3-typescript/src/Demo.vue
image

I did a bit of digging and it worked by completely removing the typings file: @fullcalendar\vue3\dist\main.d.ts I think it may be something that file is importing is causing the issue

@acerix
Copy link
Member

acerix commented Dec 31, 2021

I don't have any issue building this example, this sounds like an issue with VSCode.

@treighmawaka
Copy link

@MikesGlitch this might be an issue with the Volar extension, if you're using it. See #vuejs/language-tools#552. I remember having to downgrade to v0.27.26 because in later versions, "template virtual code is changed to JSX to improve generic component support" to quote the project owner.

@MikesGlitch
Copy link
Author

@treighmawaka Aha! Thanks, makes sense. That's annoying - almost everyone who uses Vue 3 and vscode will be using that extension.

Thanks, we should probably close this then.

@maukoese
Copy link

maukoese commented May 7, 2022

I have this same error. It comes from the preact dependency, with typings in the jsx.d.ts file.

Is there a way to disable this? Cause it throws errors for any unsupported attributes. see image below.

Screen Shot 2022-05-07 at 8 30 27 AM

@jhoermann
Copy link

I have this same error. It comes from the preact dependency, with typings in the jsx.d.ts file.

Is there a way to disable this? Cause it throws errors for any unsupported attributes. see image below.

Screen Shot 2022-05-07 at 8 30 27 AM

@maukoese See vuejs/language-tools#592 (reply in thread) to disable the preact typings.

@r-yongkuk
Copy link

r-yongkuk commented Aug 10, 2022

I have this same problem in nuxt3
스크린샷 2022-08-10 오후 12 17 06

vuejs/language-tools#592 (reply in thread)

@L-value
Copy link

L-value commented Oct 25, 2022

so can you tell me how to fix this issue i try all methods but still not work

@tarwin
Copy link

tarwin commented Apr 29, 2024

I'm having a very similar issue with vue-tsc --noEmit. Seems to be a problem where, when adding FullCalendar it ends up causing React DOM problems.

I know this is not the exact same problem, but thought it may help to debug.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants