You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A component that uses itself causes error TS7022: 'default' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. when typechecking.
It sometimes works when incrementally writing the SFC and generating types in the background. However, as soon as you delete .nuxt and run nuxi prepare, typechecking will fail.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Linux
v16.14.2
3.0.0-rc.8
npm@7.17.0
vite
-
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-md1jod?file=components%2FRecursiveComponent.vue
Describe the bug
A component that uses itself causes
error TS7022: 'default' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
when typechecking.It sometimes works when incrementally writing the SFC and generating types in the background. However, as soon as you delete
.nuxt
and runnuxi prepare
, typechecking will fail.Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: