<p dir="auto"><strong>TypeScript Version:</strong> 1.8.10 and higher</p>
<p dir="auto"><strong>Code</strong></p>
<p dir="auto">Actual code that causes the problem can be found on this issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="149336441" data-permission-text="Title is private" data-url="https://github.com/ReactiveX/rxjs/issues/1637" data-hovercard-type="pull_request" data-hovercard-url="/ReactiveX/rxjs/pull/1637/hovercard" href="https://github.com/ReactiveX/rxjs/pull/1637">ReactiveX/rxjs#1637</a></p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# clone the repo
git clone git@github.com:ReactiveX/rxjs.git

# get PR branch
git fetch master pull/1637/head:pr-1637
git checkout pr-1637

# install dependencies (runs build, too, which will fail, but that's okay)
npm i

# try building the CJS version (success)
npm run build_cjs

# try building the ES6 version (failure)
npm run build_es6"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> clone the repo</span>
git clone git@github.com:ReactiveX/rxjs.git

<span class="pl-c"><span class="pl-c">#</span> get PR branch</span>
git fetch master pull/1637/head:pr-1637
git checkout pr-1637

<span class="pl-c"><span class="pl-c">#</span> install dependencies (runs build, too, which will fail, but that's okay)</span>
npm i

<span class="pl-c"><span class="pl-c">#</span> try building the CJS version (success)</span>
npm run build_cjs

<span class="pl-c"><span class="pl-c">#</span> try building the ES6 version (failure)</span>
npm run build_es6</pre></div>
<p dir="auto">The exact scripts being run are:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="tsc typings/main/ambient/es6-shim/index.d.ts ./dist/cjs/src/Rx.ts ./dist/cjs/src/Rx.KitchenSink.ts ./dist/cjs/src/Rx.DOM.ts ./dist/cjs/src/add/observable/of.ts                             -m commonjs --sourceMap --outDir ./dist/cjs --target ES5 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors
tsc                                          ./dist/es6/src/Rx.ts ./dist/es6/src/Rx.KitchenSink.ts ./dist/es6/src/Rx.DOM.ts ./dist/es6/src/add/observable/of.ts                             -m es2015   --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors
"><pre class="notranslate"><code class="notranslate">tsc typings/main/ambient/es6-shim/index.d.ts ./dist/cjs/src/Rx.ts ./dist/cjs/src/Rx.KitchenSink.ts ./dist/cjs/src/Rx.DOM.ts ./dist/cjs/src/add/observable/of.ts                             -m commonjs --sourceMap --outDir ./dist/cjs --target ES5 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors
tsc                                          ./dist/es6/src/Rx.ts ./dist/es6/src/Rx.KitchenSink.ts ./dist/es6/src/Rx.DOM.ts ./dist/es6/src/add/observable/of.ts                             -m es2015   --sourceMap --outDir ./dist/es6 --target ES6 -d --diagnostics --pretty --noImplicitAny --suppressImplicitAnyIndexErrors

</code></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">Both build successfully.</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">Only the CJS build succeeds, the ES6 build fails:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/Observable.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.


16 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/observable/FromObservable.ts(16,35): error TS2307: Cannot find module 'symbol-observable'.


11 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/util/subscribeToResult.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.


142 import * as observable from 'symbol-observable';
                                ~~~~~~~~~~~~~~~~~~~

dist/es6/src/Rx.ts(142,29): error TS2307: Cannot find module 'symbol-observable'."><pre class="notranslate"><code class="notranslate">11 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/Observable.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.


16 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/observable/FromObservable.ts(16,35): error TS2307: Cannot find module 'symbol-observable'.


11 import * as observableSymbol from 'symbol-observable';
                                     ~~~~~~~~~~~~~~~~~~~

dist/es6/src/util/subscribeToResult.ts(11,35): error TS2307: Cannot find module 'symbol-observable'.


142 import * as observable from 'symbol-observable';
                                ~~~~~~~~~~~~~~~~~~~

dist/es6/src/Rx.ts(142,29): error TS2307: Cannot find module 'symbol-observable'.
</code></pre></div>
<p dir="auto"><em>From <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/vinod-a-ext/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/vinod-a-ext">@vinod-a-ext</a> on May 10, 2016 10:49</em></p>
<ul dir="auto">
<li>VSCode Version:Latest 1.1.0</li>
<li>OS Version:windows</li>
</ul>
<p dir="auto">Steps to Reproduce:</p>
<ol dir="auto">
<li>In your controller inject a service/factory for a http call</li>
<li>press F12 (go to definition ) to visit the factory which results negative?</li>
</ol>
<p dir="auto"><em>Copied from original issue: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="153977327" data-permission-text="Title is private" data-url="https://github.com/microsoft/vscode/issues/6238" data-hovercard-type="issue" data-hovercard-url="/microsoft/vscode/issues/6238/hovercard" href="https://github.com/microsoft/vscode/issues/6238">microsoft/vscode#6238</a></em></p>