37得票5回答
VSCode jsconfig.json 错误 "node_modules/agent-base/dist/src/index" 未找到。

为什么VSCode会显示这个错误? 这只是一个jsconfig.json文件。 注意:我没有使用TypeScript。

37得票6回答
jsconfig.json导致ts错误。

我在根目录下使用 Nuxt.js 项目,并有一个 jsconfig.json 文件。但出现了以下错误:File '/home/mike/Documents/nuxt/node_modules/dotenv/types' not found. The file is in the progr...

35得票6回答
如何修复来自jsconfig.json的“File '.../node_modules/dotenv/types' not found.”错误?

VSCode显示jsconfig.json的错误信息:"文件 '.../node_modules/dotenv/types' 未找到。" 看起来是在寻找dotenv的TypeScript定义,但我既没有使用TypeScript,也没有使用dotenv(除了引入的包之外)。而且确实存在一个nod...

17得票3回答
为什么VSCode在tsconfig中无法识别路径别名?

我之前有一个 jsconfig.json 文件,我把它替换成了 tsconfig.json。替换后,VSCode 现在无法获取路径别名并报告导入错误: 例如:Cannot find module '@Components/Title' or its corresponding type dec...