question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JSX element type 'X__VLS_' does not have any construct or call signatures.

See original GitHub issue

JSX element type ‘X__VLS_’ does not have any construct or call signatures.

I have this component in my source code:

<script lang="ts">
import type { QInputProps } from 'quasar';
import { QInput } from 'quasar';
import { defineComponent } from 'vue';

// @ts-expect-error: We know what we are doing
export default defineComponent<QInputProps>({
  ...QInput,
  ...{
    props: {
      ...QInput.props,
      outlined: { type: Boolean, default: true },
    },
  },
  name: 'DInput',
  inheritAttrs: true,
});
</script>

<template lang="pug">
QInput(v-model="modelValue", :outlined="outlined ?? true")
</template>
image

It shows this warning when updating Volar to 0.40.2, with 0.40.1 everything was working and it showed no errors

I’m still on TS 4.7.4 and not 4.8 Using vue-tsc and @volar/pug-language-service

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
johnsoncodehkcommented, Sep 12, 2022

Sorry because I found it not so easy to fix, may have to rewrite lot of the code, but will soon.

2reactions
johnsoncodehkcommented, Sep 7, 2022

@Shinigami92 It’s planed to fix in v0.40.12.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSX element type Elem does not have any construct or call ...
What you want is a function that takes a constructor for React. ... Type '(props: myProps) => Element' provides no match for the...
Read more >
JSX element type does not have any construct or call ... - GitHub
Should output normal as TypeScript 3.1.6. Actual behavior: TS2604: JSX element type 'Comp' does not have any construct or call signatures.
Read more >
JSX element type does not have any construct or call signatures
The error "JSX element type does not have any construct or call signatures" occurs when we try to pass an element or a...
Read more >
jsx element type does not have any construct or call ... - You.com
JSX element type 'Student' does not have any construct or call signatures. You get this kind of error because you tried to pass...
Read more >
TypeScript Error "element type does not have any construct or ...
Hello all, I am new to react and typescript and I am getting an error that I don't quite understand From my file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found