问题描述 在vue3+vite+ts项目开发中,使用definedProps语法无法使用外部引入的类型定义,提示报错:[@vue/compiler-sfc] type argument passed to defineProps() must be a literal type, or a reference to an interface or literal type.,详细解决方法。 如果情况一样,便可以完美解决。 问题排查 首先,出现这种情况