Closed
Description
Basically the issue is that with strict mode, typescript complains that string | number (type from keyof $slots) can't index the slots object that is inferred from the component you added it to. Not sure how to fix this specifically, if volar has to make a change or if there is a way I can get typescript to not error here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
johnsoncodehk commentedon Dec 30, 2022
Just had a look, this appears to be a duplicate of #625.
kalvenschraut commentedon Dec 30, 2022
Doesn't appear obvious to me that it is, but if you say so.
Is there a way to ignore/get around this type error? one only ones I have left before I can turn on strict mode
kalvenschraut commentedon Dec 30, 2022
Tried something like the below, but receiving a different error.
kalvenschraut commentedon Dec 30, 2022
Weird the error just went away after awhile, vue-tsc doesn't error so I guess this works.