需要在 tsconfig.json 增加: { "compilerOptions": { "jsx": "preserve", "jsxImportSource": "vue" } } 参考: https://github.com/vuejs/language-tools/issues/3856