Vue 3.3.4, defineProps could not resolve globa types
Vue version
3.3.4
Link to minimal reproduction
Steps to reproduce
- in global.d.ts
export {};
declare global {
interface GlobalProps {
activeData: activeDataType;
}
}
- using type
const props = defineProps<GlobalProps>();
- Error [@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
What is expected?
defineProps can use global types
What is actually happening?
[@vue/compiler-sfc] Unresolvable type reference or unsupported built-in utility type
System Info
System:
OS: macOS 11.3.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 1.59 GB / 32.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 14.18.0 - /usr/local/bin/node
Yarn: 1.22.18 - /usr/local/bin/yarn
npm: 6.14.15 - /usr/local/bin/npm
pnpm: 6.32.3 - /usr/local/bin/pnpm
Browsers:
Chrome: 116.0.5845.179
Safari: 14.1
Any additional comments?
No response