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
<templatev-for="(_, name) in $slots" #[name]="slotData"><slot:name="name" v-bind="slotData" /></template>
What is expected?
No errors
Screen.Recording.2025-02-20.at.10.55.45.mov
What is actually happening?
error TS7022: 'name' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer.
12 v-for="(_, name) in $slots
Screen.Recording.2025-02-20.at.10.56.18.mov
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered:
Vue - Official extension or vue-tsc version
2.2.2
VSCode version
1.97.2
Vue version
1.97.2
TypeScript version
5.7.3
System Info
package.json dependencies
Steps to reproduce
try to pass slots into a child:
What is expected?
No errors
Screen.Recording.2025-02-20.at.10.55.45.mov
What is actually happening?
Screen.Recording.2025-02-20.at.10.56.18.mov
Link to minimal reproduction
No response
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: