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
xx.vue:1:10 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
× 'import type' are a TypeScript only feature. Convert your file to a TypeScript file or remove the syntax.
> 1 │ <script generic="T extends Record<string, any>" lang="ts" setup>
│ ^^^^^^^^^^^^^^^^^^^^^^^^^
2 │ import type { VNode } from 'vue'
i TypeScript only syntax
Expected result
parse generic component success without errors
Code of Conduct
I agree to follow Biome's Code of Conduct
The text was updated successfully, but these errors were encountered:
While there's no error being thrown, it does appear this still isn't working. Generic types defined by these generic components aren't recognized within the script.
Environment information
What happened?
when using generic component in vue like below:
it throws error:
Expected result
parse generic component success without errors
Code of Conduct
The text was updated successfully, but these errors were encountered: