-
-
Notifications
You must be signed in to change notification settings - Fork 8.8k
Closed
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problem
Description
Vue version
3.3.3
Link to minimal reproduction
https://github.com/tragid/vue-default-export-error
Steps to reproduce
- Create props interface file: TestComponentProps.ts
- Create default export from file
export default interface TestComponentProps {
msg: string;
}
- import type within component TestComponent.vue
import type TestComponentProps from './TestComponentProps';
const props = defineProps<TestComponentProps>();
- Vue throws error on startup.
[@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
What is expected?
Vue can resolve defaultly imported types
What is actually happening?
Vue throws error on startup.
[@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
System Info
No response
Any additional comments?
Everything works, if I create export from file with no default provided
export interface TestComponentProps {
msg: string;
}
import type { TestComponentProps } from './TestComponentProps';
const props = defineProps<TestComponentProps>();
RomanSkrypnik
Metadata
Metadata
Assignees
Labels
has workaroundA workaround has been found to avoid the problemA workaround has been found to avoid the problem