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

Breaking component import. "... is declared but its value is never read" #1729

Closed
Ailis7 opened this issue Aug 18, 2022 · 5 comments
Closed
Labels
bug Something isn't working

Comments

@Ailis7
Copy link

Ailis7 commented Aug 18, 2022

Hello!
Tell me when you fix this problem, and will you? :)
I don’t know if this error was introduced .. or how to get around it, but there is no such problem with the functions.
Only when importing components. Thank you!
image

@Ailis7
Copy link
Author

Ailis7 commented Aug 18, 2022

image
Found a similar problem with functions (worked correctly in previous versions)

@Ailis7
Copy link
Author

Ailis7 commented Aug 18, 2022

Hmm, in this form it is not possible to use the extension (I returned to Vetur and turned off the script validation setting + installed the usual extension of EsLinter. Maybe it will help someone:
image

@esbeto
Copy link

esbeto commented Aug 18, 2022

I discovered that I by adding "jsx": "preserve", in my jsconfig compilerOptions, it solved this issue.

Looks something like this:

{
  "compilerOptions": {
    "jsx": "preserve",
    // other stuff
  },
}

@johnsoncodehk
Copy link
Member

johnsoncodehk commented Aug 27, 2022

Fixed in 6f79f8f. (Please also see #1168 (comment))

@Ailis7
Copy link
Author

Ailis7 commented Aug 29, 2022

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants