Skip to content
New issue

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

tsConfig.json中有报错。 #5564

Closed
ZMB1997 opened this issue Nov 13, 2023 · 2 comments
Closed

tsConfig.json中有报错。 #5564

ZMB1997 opened this issue Nov 13, 2023 · 2 comments

Comments

@ZMB1997
Copy link

ZMB1997 commented Nov 13, 2023

版本号:

3.5.5

前端版本:vue3版?还是 vue2版?

vue3

问题描述:

tsConfig.json文件里面有报错:
找不到“vite/client”的类型定义文件。程序包含该文件是因为: 在 compilerOptions 中指定的类型库 "vite/client" 的入口点

截图&代码:

error

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott
Copy link
Member

zy

@liaozhiyang
Copy link

已修复,下一版本发布。
你本地可按如下图修改。vite/client因为是在node_modules目录下,所以typeRoots得加上
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants