<p dir="auto">This is JS-only API and causes compiler warnings in Dart.</p>
<p dir="auto"><strong>I'm submitting a ...</strong>  (check one with "x")</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request =&gt; Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
When compiling the project that has imports from outside of the root directory (shared/components/*), the path in the ngfactory file is targeting the generated ngfactory of the import in the source directory of the import, instead of the directory it's been compiled to.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
The import paths should be adjusted in order to properly target the compiled files.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://github.com/mug3n/bug-report-ngc">https://github.com/mug3n/bug-report-ngc</a></p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
It's not working as intended, as the files are being compiled, but being looked for in wrong locations.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Fedora release 23 (Twenty Three), WebStorm.<br>
The same can be reproduced on OS X</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.1</li>
<li><strong>Browser:</strong> [all]</li>
<li><strong>Language:</strong> [TypeScript X.X]</li>
<li><strong>Node (for AoT issues):</strong> v5.10.1</li>
</ul>