JSX issue when using in Vue 3 with Typescript
See original GitHub issueDescription
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)
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
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
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Using Vue 3 with JSX and TypeScript - Paul Shen
I migrated the codebase to Vue 3 and now we're writing Vue components with JSX with TypeScript. There's relatively little documentation in the ......
Read more >Vue3 + TS: All global compnents throw "JSX element type '___ ...
This error comes from Vue Language Features (Volar). issue page. Rolling back the volar plug-in to version 0.36.1 can solve this problem.
Read more >How to use Vue.js with JSX and TypeScript - Sketchboard
You get to navigate using VSCode from HTML to TypeScript code and have a strong static type support like renaming possibilities and tool...
Read more >How to use Vue 3 with TypeScript - LogRocket Blog
In this tutorial, we'll demonstrate how to build a Vue app completely in TypeScript. We'll highlight some of the benefits of using TypeScript...
Read more >Vue with TSX - the perfect duo!? - Arek Nawo
Diving into Vue 2 and Vue 3 and their TypeScript and TSX support! ... This includes using JSX, even TSX (JSX with TypeScript)!...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@MikesGlitch this might be an issue with the Volar extension, if you’re using it. See #https://github.com/johnsoncodehk/volar/issues/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.@maukoese See https://github.com/johnsoncodehk/volar/discussions/592#discussioncomment-2163786 to disable the
preact
typings.