Within my package.json, I have the following entries along with others:
"devDependencies": {
"@types/angular": "1.6.56",
"@types/angular-resource": "1.5.15"
...
In node_modules/@types/angular-resource/node_modules/@types/angular/package.json, there is:
"name": "@types/angular",
"version": "1.6.55"
Thus, a discrepancy exists between those versions. angular-resource has this dependency:
"dependencies": {
"@types/angular": "*"
}
This means it matches any version. However, why does it default to 1.6.55 when I specified 1.6.56?
I am uncertain if this discrepancy is causing the issue I face when running tsc:
error TS2694: Namespace 'angular' has no exported member 'resource'.
If it is indeed the root cause, how can I go about resolving this?