CalendarHeading v-slot prop headingValue
causes implicit any
#1562
Replies: 1 comment
-
It seems like this issue is related to TypeScript's handling of implicit types in combination with the CalendarHeading component from radix-vue. The error you're seeing happens when TypeScript cannot infer the type of headingValue, so it defaults to any. This could be caused by: Missing Type Annotations: The headingValue is missing an explicit type in the v-slot. To resolve this, you can try explicitly defining the type in your template. TypeScript Configuration: You might want to check your tsconfig.json and ensure that noImplicitAny is set to true. This forces TypeScript to catch these implicit any types. Radix-Vue Typing Issue: If the radix-vue package itself doesn't provide sufficient TypeScript types for this component, it could indeed be a bug or a limitation in radix-vue. You could check the package's issue tracker to see if this has already been addressed. To fix the immediate issue, try updating your component like this: |
Beta Was this translation helpful? Give feedback.
-
Hi, so I recently updated my dependencies after which CalendarHeading component from shadcn-vue caused a implicit
any
.Here is the whole error:
This seems like a problem caused by radix-vue, since the CalendarHeading component in line 18 is imported from radix-vue.
Now my question arises, is this a problem with my configuration somehow or is this a bug that hasn't been addressed yet.
Here are the versions from my package.json:
Beta Was this translation helpful? Give feedback.
All reactions