Closed as not planned
Description
Vue version
lastest
Link to minimal reproduction
Steps to reproduce
<script setup lang="ts">
import type { InputNumberProps } from 'naive-ui';
const { componentProps } = defineProps<InputNumberProps>();
const slots = useSlots();
</script>
[vite] Internal server error: [@vue/compiler-sfc] Failed to resolve index type into finite keys
E:/projects/stp-web/node_modules/naive-ui/es/_utils/naive/extract-public-props.d.ts
3 | type themePropKeys = keyof typeof useTheme.props;
4 | type RemoveReadonly<T> = {
5 | -readonly [key in keyof T]: T[key];
| ^^^^^^^
6 | };
7 | export type ExtractPublicPropTypes<T> = Omit<Partial<RemoveReadonly<ExtractPropTypes<T>>>, Exclude<themePropKeys, 'themeOverrides'> | Extract<keyof T, `internal${string}`>>;
What is expected?
Fix this error, otherwise Support imported types in SFC macros seems pointless
What is actually happening?
[@vue/compiler-sfc] Failed to resolve index type into finite keys #9111
System Info
window
Any additional comments?
No response
Metadata
Metadata
Assignees
Labels
No labels