I am currently using Visual Studio 2015 Update 2 to develop an Angular 2 application with Typescript. A problem arises when attempting to import the rxjs operator map on my service.
https://i.sstatic.net/c9eFh.png
Despite importing the operator as required, Visual Studio 2015 still fails to locate it, as depicted in the image above. Clicking F12 on the import statement leads me to the correct file. Below is my tsconfig settings for reference.
{
"compilerOptions": {
"target": "es5",
"module": "system",
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true
},
"exclude": [
"wwwroot",
"node_modules",
"bower_components",
"typings"
],
"compileOnSave": false
}
Please note that this issue appears to be specific to Visual Studio 2015. When testing in Visual Studio Code, the problem is resolved without any trouble.
Could it be that Visual Studio 2015's support for Typescript is not as robust as that of Visual Studio Code? Thank you for your assistance.