VSCode jsconfig.json error “node_modules/agent-base/dist/src/index” not found
Try adding “exclude”: [“node_modules”] as described in the VSCode docs. I added this and restarted VSCode and the error message went away.
Try adding “exclude”: [“node_modules”] as described in the VSCode docs. I added this and restarted VSCode and the error message went away.
I had the same issue. Restarting VSCode solved the problem. See: https://github.com/motdotla/dotenv/issues/475 Edit: this seems to be an issue with the contents of dotenv’s package.json. There’s an open PR, but the author hasn’t replied/merged yet at this time. Link: https://github.com/motdotla/dotenv/pull/476 Edit 2: This should now be fixed! dotenv v8.4.0 fixes this issue. See https://github.com/motdotla/dotenv/releases/tag/v8.4.0.
After trying several solutions, I have just added “exclude”: [“node_modules”] and restarted VScode. The error went away.