'Why is jsconfig.json file reporting a 'not found' problem?
My jsconfig.json file is reporting a problem:
File 'c:/.../node_modules/source-map/source-map' not found.
The file is in the program because:
Root file specified for compilation
It always reports it twice, and points to the first { in the file.
Here's my jsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"target": "es6",
"baseUrl": ".",
"paths": {
"@/*": ["src/*"],
}
},
"include": [
"src/**/*"
],
"exclude": ["node_modules"]
}
When I reload VSCode, it's gone for a few minutes and then reappears while using VSCode.
Solution 1:[1]
Adding "noEmit": true to compilerOptions and reloading VSCode seems to work for me.
Solution 2:[2]
This was fixed for us by installing a later version of source-map as a dev dependency.
npm install source-map --save-dev
At the time of writing this, the package.json entry under devDependencies is:
"source-map": "^0.7.3"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Khairul Kasmiran |
| Solution 2 | Evil Pigeon |
