Despite searching through numerous "TS cannot find module" questions, none of the solutions seem to be working for me or applicable to my situation.
I am currently debugging a solution in VS2019. Upon cloning the repository, I encountered this TS error stating it couldn't find modules. Running npm install did not resolve the issue. Manually installing each module only resulted in more problems. Shouldn't the modules be present if the build is successful?
The project utilizes typescript 3.7, so I attempted to update it to see if that would make any difference. Unfortunately, it did not help.
Below is the content of the tsconfig:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node",
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"lib": [ "es2015", "dom" ],
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"typeRoots": ["node_modules/@types"]
},
"include":[
"node_modules/angular2-masonry",
"app/**/*"
]
}
In addition, this project functions properly on my colleague's machine. Therefore, I suspect there may be a missing package or some related element that I am overlooking. If you require more information, please let me know.