<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>
Application don't launch with Angular 4.0.0-beta.8 - ES5 JavaScript with DSL.</p>
<p dir="auto">Problem to start application<br>
Unhandled Promise rejection: Cannot read property 'merge' of undefined ; Zone:  ; Task: Promise.then ; Value: TypeError: Cannot read property 'merge' of undefined</p>
<p dir="auto">Problem to launch module with canActivate / canDeactivate option<br>
EXCEPTION: Uncaught (in promise): TypeError: Cannot read property '$$observable' of undefined<br>
TypeError: Cannot read property '$$observable' of undefined</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Application should work normaly</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://plnkr.co/edit/tPtY1a31CnFqhNbzVViU?p=preview" rel="nofollow">https://plnkr.co/edit/tPtY1a31CnFqhNbzVViU?p=preview</a></p>
<p dir="auto">Problem to start application --&gt; corrected by adding this two lines in index.html<br>
window.rxjs_observable_merge = Rx.Observable;<br>
window.rxjs_operator_share = Rx.Observable.prototype;</p>
<p dir="auto">Problem to launch module with canActivate / canDeactivate option --&gt; corrected by adding this two lines in index.html<br>
Rx.Symbol.$$observable = Rx.Symbol.observable;<br>
window.rxjs_symbol_observable = Rx.Symbol;</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Having application launch and work normaly</p>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Not important !</p>
<ul dir="auto">
<li>
<p dir="auto"><strong>Angular version:</strong> 4.0.0-beta.8 and earlier (not sure !)</p>
</li>
<li>
<p dir="auto"><strong>Browser:</strong> Chrome and all others</p>
</li>
<li>
<p dir="auto"><strong>Language:</strong> ES5</p>
</li>
<li>
<p dir="auto"><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> = Not concerned</p>
</li>
</ul>
<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; (maybe related with #12162)
[ ] feature request
[ ] support request"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; (maybe related with #12162)
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Angular runs <code class="notranslate">resolve</code> methods before APP_INITIALIZER ends.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Angular should wait for all APP_INITIALIZER promises and then run <code class="notranslate">resolve</code> functions for routes.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
<a href="https://plnkr.co/edit/MiWgLZ?p=preview" rel="nofollow">https://plnkr.co/edit/MiWgLZ?p=preview</a></p>
<p dir="auto">Choose angular version in config.js. In Angular 2.4.8 fails, in Angular 2.4.7 works.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
In previous versions it works.</p>
<ul dir="auto">
<li><strong>Angular version:</strong><br>
2.4.8</li>
</ul>
<p dir="auto">Maybe related with <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="181778729" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12162" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12162/hovercard" href="https://github.com/angular/angular/issues/12162">#12162</a></p>