We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
<script setup lang="ts"> interface Props { title: string } defineProps<Props>() // Error:模块的默认导出具有或正在使用专用名称 “Props”。 </script>
移除 composite:true 在 tsconfig.json 中,警告消失。详见:vuejs/language-tools#1232
composite:true
使用 pnpm create vite 初始化项目之后,嫌两个配置文件看起来过于多余,于是手动合并了 tsconfig.json 和 tsconfig.node.json。
pnpm create vite
tsconfig.json
tsconfig.node.json
Vite 中关于修改 tsconfig.json 的讨论:
import.meta.url
vite.config.ts
https://www.typescriptlang.org/docs/handbook/project-references.html
The text was updated successfully, but these errors were encountered:
No branches or pull requests
问题背景
解决方案
移除
composite:true
在 tsconfig.json 中,警告消失。详见:vuejs/language-tools#1232问题原因
使用
pnpm create vite
初始化项目之后,嫌两个配置文件看起来过于多余,于是手动合并了tsconfig.json
和tsconfig.node.json
。Vite 中关于修改 tsconfig.json 的讨论:
import.meta.url
invite.config.ts
shows error in IDE (VS Code) vitejs/vite#6311相关文档
https://www.typescriptlang.org/docs/handbook/project-references.html
The text was updated successfully, but these errors were encountered: