When developing locally in VS Code, packages are resolving to C:/Users/<User>/AppData/Local/Microsoft/TypeScript/3.5/node_modules/@types/<package>/index
and not from the /node_modules
directory local to the package.json.
I'm not getting any compiling errors or when deploying, but I can't wrap my head around why it's not resolving to the location I'd expect it to. Any idea why and how to fix it?
I'm using Node 8.12 and NPM 6.4.1.
package.json
{
"name": "superapp",
"version": "0.0.1",
"description": "",
"main": "server.js",
"scripts": {
"start": "node server"
},
"keywords": [],
"license": "ISC",
"dependencies": {
"body-parser": "^1.19.0",
"dotenv": "^8.0.0",
"express": "^4.17.1"
}
}