<p dir="auto">I'm trying to use angular2 as a JSPM package.<br>
When I'm doing something like<br>
<code class="notranslate">import {bootstrap, Component, Input} from 'angular2/angular2';</code><br>
in my code then typescript complains that it can't find the definitions and I don't get any code completions.</p>
<p dir="auto">The workaround is to install angular2 also as a npm package and set moduleResolution to node. However this seems not optimal, because now I have two dependencies whose versions need to be aligned.</p>
<p dir="auto">I guess tsc could resolve the modules for jspm/systemjs similar to how it already can do it for node. E.g. look up package.json, config.js and use the pathes from there the locate to type definitions inside the jspm_packages folder.</p>
<p dir="auto">Not really sure if this is covered by <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="109143324" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5039" data-hovercard-type="issue" data-hovercard-url="/microsoft/TypeScript/issues/5039/hovercard" href="https://github.com/microsoft/TypeScript/issues/5039">#5039</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="117968555" data-permission-text="Title is private" data-url="https://github.com/microsoft/TypeScript/issues/5728" data-hovercard-type="pull_request" data-hovercard-url="/microsoft/TypeScript/pull/5728/hovercard" href="https://github.com/microsoft/TypeScript/pull/5728">#5728</a>.</p>
<p dir="auto">I get this error - Build: Cannot compile modules unless the '--module' flag is provided.<br>
even though I have AMD checked in the project settings.<br>
Visual Studio 2015. 14.0.23107.0 D14REL<br>
TypeScript Tools for Microsoft Visual Studio 2015 1.5.4.0</p>