vuedx / languagetools

A collection of tools for better IDE experience.

Home Page:https://vuedx.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The component is inferred as global component & JSX element type Error

webliving opened this issue · comments

Describe the bug
JSX element type 'VanCircle' does not have any construct or call signatures.VueDX/TS(2604)
The component 'van-circle' is inferred as global component. It may not be available at runtime.VueDX(59002)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
no typescript Error

Screenshots/Recording
image
Info (please complete the following information):

  • OS Mac
  • IDE VS Code
  • TypeScript Version 4.2.4
  • Vue Version 3.0.0

Additional context
Add any other context about the problem here e.g. code snippets or reproduction repository etc.

i have the same question....

截屏2021-04-28 23 07 10

Same issue while using Element+ component library.
image

Same issue in Quasar project.

image

I'm having the same issue as well, but I'm using Vue (not React) and it's flagging <component> with this warning:

JSX element type '_DyComp0_' does not have any construct or call signatures.VueDX/TS(2604)

image

I'm having the same issue with Quasar. However, registered components are errorless.

image