Currently, I am utilizing Visual Studio 2015 Update 1 in conjunction with TypeScript 1.8.5.
Within my ASP.NET MVC 4.6 Web Application, Angular2 is being used.
The TypeScript compile options have been configured with the following settings:
<PropertyGroup>
<TypeScriptTarget>ES5</TypeScriptTarget>
<TypeScriptJSXEmit>None</TypeScriptJSXEmit>
<TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>
<TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>
<TypeScriptModuleKind>System</TypeScriptModuleKind>
<TypeScriptModuleResolution>node</TypeScriptModuleResolution>
<TypeScriptRemoveComments>False</TypeScriptRemoveComments>
<TypeScriptOutFile />
<TypeScriptOutDir />
<TypeScriptGeneratesDeclarations>False</TypeScriptGeneratesDeclarations>
<TypeScriptNoEmitOnError>True</TypeScriptNoEmitOnError>
<TypeScriptSourceMap>True</TypeScriptSourceMap>
<TypeScriptMapRoot />
<TypeScriptSourceRoot />
<TypeScriptExperimentalDecorators>True</TypeScriptExperimentalDecorators>
</PropertyGroup>
Although there are no build errors displayed in the ErrorList, there are Intellisense errors present, such as:
Cannot find module 'angular2/core'
All dependencies, including Angular2 and others, have been correctly located within the node_modules folder.
Despite successful compilation of TypeScript to JavaScript and the functional runtime performance of resulting JavaScript code, various Intellisense errors persist throughout most TypeScript files within the Visual Studio environment.
Furthermore, certain components like ag-grid-ng2 possess appropriate TypeScript definition files within node_modules, yet Intellisense fails to recognize them as typed ('any' type instead).
Why is this happening?