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
And when using it in another component:
Named slots get error:
Element implicitly has an 'any' type because expression of type '"header"' can't be used to index type '{} | {}'.
Property 'header' does not exist on type '{} | {}'.ts(7053)
But as long as I remove <script setup lang="ts"></script>, everything is fine.
Please kindly suggest.
The text was updated successfully, but these errors were encountered:
Seems to have the same problem.
v-bind & named slot will changes the type of components and attributes to any.
and this problem only seems to occur when setup sugar is used.
Say I have below component:
SlotComponent
. It has normal<script>
to defineinheritAttrs: false
. Also I use<script setup>
:And when using it in another component:
Named slots get error:
But as long as I remove
<script setup lang="ts"></script>
, everything is fine.Please kindly suggest.
The text was updated successfully, but these errors were encountered: