Is there a way to disable JSX type usage in HTML? #1031
-
Hi there! Loving Volar! ❤️ However..... I ran into a little bit of snafu. We're relying on Vue 3 and use Fullcalendar as a component (through fullcalendar-vue). However, Fullcalendar relies on I tried the I'm a little bit at a loss of what to do next to resolve this. It effectively leaves Volar in a non-usable state, as every Vue component and their props are lighting up bright red. In #552 (comment), @johnsoncodehk mentions that template virtual code is changed to JSX to improve generic component support, which made me wonder: Is there any setting available to change it back to whatever non-JSX checker existed before? Or is there a way to disable inline checking on the HTML bit of a Vue file completely? Thanks in advance! Footnotes
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
For example: <template>
<div :class="{ example: true }"></div>
</template> shows an error:
following the definition of export namespace JSXInternal {
// ... truncated ...
export interface HTMLAttributes<RefType extends EventTarget = EventTarget>
extends ClassAttributes<RefType>,
DOMAttributes<RefType> {
// ... truncated ...
class?: string;
// ... truncated ... Oh and I do have |
Beta Was this translation helpful? Give feedback.
-
Hi @rijkvanzanten, this comment is also using fullcalendar and he seems to solve it, please take a try to his way. |
Beta Was this translation helpful? Give feedback.
Hi @rijkvanzanten, this comment is also using fullcalendar and he seems to solve it, please take a try to his way.
#592 (reply in thread)