-
-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Functional Component has type 'any' #14853
Comments
Have you tried without Nuxt, or via an explicit import, to see whether this is an issue with Volar? |
It does not seem to work (in template) with explicit import, meaning this is a Volar issue rather than a Nuxt one: Would you raise an issue there? |
Sure, will do that. Thanks! |
@danielroe See If we change This will works well. So this is also a bug in nuxt. This will only work if TypeScript support import with |
Environment
nuxi info
Linux
v18.8.0
3.0.0-rc.9
0.5.1
npm@8.18.0
vite
-
-
-
VSCode + Volar + TakeOver mode 4.8.2
Reproduction
https://github.com/f3oall/nuxt3-functional-component
Describe the bug
Autoimported Functional Components have type 'any'.
You can see that I explicitly typed component in reproduction. If it's not a bug and I'm doing something wrong, explanation is welcome.
Screenshot:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: