{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6625","repository_url":"https://api.github.com/repos/Microsoft/TypeScript","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6625/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6625/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6625/events","html_url":"https://github.com/Microsoft/TypeScript/issues/6625","id":128871339,"number":6625,"title":"MsBuild compiler options don't support node modules properly","user":{"login":"Tuesdaysgreen","id":5695405,"avatar_url":"https://avatars.githubusercontent.com/u/5695405?v=3","gravatar_id":"","url":"https://api.github.com/users/Tuesdaysgreen","html_url":"https://github.com/Tuesdaysgreen","followers_url":"https://api.github.com/users/Tuesdaysgreen/followers","following_url":"https://api.github.com/users/Tuesdaysgreen/following{/other_user}","gists_url":"https://api.github.com/users/Tuesdaysgreen/gists{/gist_id}","starred_url":"https://api.github.com/users/Tuesdaysgreen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tuesdaysgreen/subscriptions","organizations_url":"https://api.github.com/users/Tuesdaysgreen/orgs","repos_url":"https://api.github.com/users/Tuesdaysgreen/repos","events_url":"https://api.github.com/users/Tuesdaysgreen/events{/privacy}","received_events_url":"https://api.github.com/users/Tuesdaysgreen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Bug","name":"Bug","color":"e11d21"},{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/Fixed","name":"Fixed","color":"bfe5bf"}],"state":"closed","locked":false,"assignee":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15","html_url":"https://github.com/Microsoft/TypeScript/milestones/TypeScript%201.8","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones/15/labels","id":1347987,"number":15,"title":"TypeScript 1.8","description":"","creator":{"login":"mhegazy","id":8000722,"avatar_url":"https://avatars.githubusercontent.com/u/8000722?v=3","gravatar_id":"","url":"https://api.github.com/users/mhegazy","html_url":"https://github.com/mhegazy","followers_url":"https://api.github.com/users/mhegazy/followers","following_url":"https://api.github.com/users/mhegazy/following{/other_user}","gists_url":"https://api.github.com/users/mhegazy/gists{/gist_id}","starred_url":"https://api.github.com/users/mhegazy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhegazy/subscriptions","organizations_url":"https://api.github.com/users/mhegazy/orgs","repos_url":"https://api.github.com/users/mhegazy/repos","events_url":"https://api.github.com/users/mhegazy/events{/privacy}","received_events_url":"https://api.github.com/users/mhegazy/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":312,"state":"closed","created_at":"2015-10-09T22:07:47Z","updated_at":"2016-03-03T00:43:33Z","due_on":null,"closed_at":"2016-01-28T20:08:21Z"},"comments":10,"created_at":"2016-01-26T16:30:34Z","updated_at":"2016-03-03T01:49:19Z","closed_at":"2016-01-26T18:33:39Z","body":"I'm trying to get the Angular2 beta to work with ASP.Net Web API but can either get intellisense with the Angular2 node libraries to work in Visual Studio, or compiling to work, but not both.  The project I'm referring to is here: https://github.com/Tuesdaysgreen/angular2-webapi\r\n\r\nAccording to your [msbuild documentation](https://github.com/Microsoft/TypeScript/wiki/Setting-Compiler-Options-in-MSBuild-projects), you should specify \"NodeJs\" instead of \"node\" for the TypeScriptModuleResolution for node modules projects.  If I use this, then the Visual Studio editor is able to resolve the Angular2 node libraries, but if I try to compile, I hit this error: \r\n\r\n`Build: Argument for '--moduleResolution' option must be 'node' or 'classic'.\tangular2-webapi\tC:\\git\\angular2-webapi\\angular2-webapi\\VSTSC`\r\n\r\nIf I change TypeScriptModuleResolution to \"node\" instead of \"NodeJs\", then I can compile, but lose intellisense for the Angular2 node modules in the editor.  For example, when I hover over the error from this import statement, it says \"cannot find module \"angular2/core\"\r\n\r\n`import {Component} from 'angular2/core'`\r\n\r\nHere's my TypeScript arguments from my csproj file:\r\n\r\n`  <PropertyGroup Condition=\"'$(Configuration)|$(Platform)' == 'Debug|AnyCPU'\">\r\n    <TypeScriptTarget>ES5</TypeScriptTarget>\r\n    <TypeScriptJSXEmit>None</TypeScriptJSXEmit>\r\n    <TypeScriptCompileOnSaveEnabled>True</TypeScriptCompileOnSaveEnabled>\r\n    <TypeScriptNoImplicitAny>False</TypeScriptNoImplicitAny>\r\n    <TypeScriptModuleKind>System</TypeScriptModuleKind>\r\n    <TypeScriptRemoveComments>False</TypeScriptRemoveComments>\r\n    <TypeScriptGeneratesDeclarations>False</TypeScriptGeneratesDeclarations>\r\n    <TypeScriptNoEmitOnError>True</TypeScriptNoEmitOnError>\r\n    <TypeScriptSourceMap>True</TypeScriptSourceMap>\r\n    <TypeScriptExperimentalDecorators>true</TypeScriptExperimentalDecorators>\r\n    <TypeScriptModuleResolution>NodeJs</TypeScriptModuleResolution>\r\n    <TypeScriptEmitDecoratorMetadata>true</TypeScriptEmitDecoratorMetadata>\r\n  </PropertyGroup>\r\n`\r\n\r\nIt seems like the module resolution should always be \"node\" instead of \"NodeJs\", so I'm not sure if this is a VS bug, or an msbuild bug, or a TypeScript compiler bug but I figure I would start here.  Please let me know if you need any more info."},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/191535198","html_url":"https://github.com/Microsoft/TypeScript/issues/6625#issuecomment-191535198","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/6625","id":191535198,"user":{"login":"petrelselina","id":7093544,"avatar_url":"https://avatars.githubusercontent.com/u/7093544?v=3","gravatar_id":"","url":"https://api.github.com/users/petrelselina","html_url":"https://github.com/petrelselina","followers_url":"https://api.github.com/users/petrelselina/followers","following_url":"https://api.github.com/users/petrelselina/following{/other_user}","gists_url":"https://api.github.com/users/petrelselina/gists{/gist_id}","starred_url":"https://api.github.com/users/petrelselina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petrelselina/subscriptions","organizations_url":"https://api.github.com/users/petrelselina/orgs","repos_url":"https://api.github.com/users/petrelselina/repos","events_url":"https://api.github.com/users/petrelselina/events{/privacy}","received_events_url":"https://api.github.com/users/petrelselina/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T01:49:19Z","updated_at":"2016-03-03T01:49:19Z","body":"@stasberkov Our project contains some problem with ts 1.8, so we use 1.7, I finally find the cause. Because I installed 1.8 before, and it leave some cache in C:\\Program Files (x86)\\MSBuild\\Microsoft\\VisualStudio\\v14.0\\TypeScript. So i delete them and reinstall 1.7, the workaroud worked fine. Thx anyway."}}