-
Notifications
You must be signed in to change notification settings - Fork 349
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
[Bug]: Property 'heading' does not exist on type #638
Comments
Hello There! |
I cant add a reproduction link so if you have to close this i understand. im using vue-tsc 1.8.27 because nuxt 3 can't support vue-tsc 2 yet |
I think you're referring to this issue if I'm not mistaken, which is fixed by now. could you update you're dependencies (using UpdateIf you're using typescript: {
typeCheck: true
} In your
It seems that issue is not resolved yet. |
@Saeid-Za hmm.. how do you have it specified in package.json? This still results in the index error you linked to: "vue-tsc": "^2.0.24" |
You are correct. With |
So ive installed vue-tsc from master, and the 'index' bug is gone, and im fully on 2.0 with latest TS:
I can report upstream, but before I do that I just wanted to make sure that it's not some kind of syntax error. I've never seen a slot that just has a floating I'm asking because if you look at the error, it looks like it's improperly parsing it, as if its invalid vue code. it thinks they're different properties separated by a hyphen:
Notice it says "heading" and "value" separately |
actually.... it might be loading vue-tsc from some other plugin. so ignore me for the time being |
new nuxt is out and error finally went away |
Reproduction
This is just after running
npx shadcn-vue@latest add range-calendar
with typescript. Its as simple as it gets, so hopefully no reproduction is neededDescribe the bug
After adding the range component, I immediately get the following typescript errors for
RangeCalendarHeading
:System Info
Contributes
The text was updated successfully, but these errors were encountered: