gpt4 book ai didi

javascript - vscode 在 jsconfig.json 文件中显示 typescript 相关问题

转载 作者:行者123 更新时间:2023-12-04 12:24:29 26 4
gpt4 key购买 nike

我建立了一个普通的 create-react-app 项目并将 jsconfig.json 添加到根目录。但它显示了与 typescript 相关的错误。
problems in Vscode terminal
这是 jsconfig.json 文件

jsconfig.json configurations

文件夹结构

enter image description here

谁能帮我这个?

谢谢,
普拉希尔

最佳答案

打开 settings.json 文件,添加以下行,然后保存。

 "json.schemas": [
{
"$schema": "https://json.schemastore.org/jsconfig"
}
]
enter image description here

关于javascript - vscode 在 jsconfig.json 文件中显示 typescript 相关问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61287127/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com