<p dir="auto"><strong>I'm submitting a ...</strong></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"><pre class="notranslate"><code class="notranslate">[x ] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Building angular on windows throws the following error:</p>
<blockquote>
<p dir="auto">Error at D:/GitHub/angular/modules/@angular/benchpress/src/reporter/console_reporter.ts:10:21: Cannot find module '../facade/lang'.</p>
</blockquote>
<p dir="auto">There is a missing symlink to facade in benchpress/src. The developer guide advises that running ./scripts/windows/create-symlinks.sh should create the symlinks required, but the text file the script uses as input to decide where to create them is missing an entry for benchpress/src.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Build should proceed without this error.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Clone the angular repo to Windows. Run the create-symlinks.sh script, observe there is no symlink to facade in @angular/benchpress/src/ . After following the other instructions in the developer guide run build.sh and see the error listed above.</p>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
It is broken.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>

<p dir="auto">Windows 10, Bash scripts run on MINGW64 that came with my git installation.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X<br>
Angular Master Branch forked today.</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br>
N/A</li>
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
N/A</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br>
N/A</li>
</ul>
<p dir="auto"><strong>I'm submitting a ...</strong></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"><pre class="notranslate"><code class="notranslate">[x ] bug report =&gt; search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong><br>
Building angular on windows throws the following error:</p>
<blockquote>
<p dir="auto">Error: Error at D:/GitHub/angular/modules/@angular/upgrade/src/aot/upgrade_component.ts:12:30: Cannot find module '../facade/lang'.</p>
</blockquote>
<p dir="auto">There is a missing symlink to facade in upgrade/src. The developer guide advises that running ./scripts/windows/create-symlinks.sh should create the symlinks required. This reads packages.txt to get the list of folders that need the links. In the text file each folder is listed on its own line. The upgrade/src folder is the last entry in that file, however because the line does not end in a \n, the bash script fails to read it. While a newline could be added to the packages.txt file, its likely that someone could delete it in future, so the bash script should be updated to work either way.</p>
<p dir="auto"><strong>Expected behavior</strong><br>
Build should proceed without this error.</p>
<p dir="auto"><strong>Minimal reproduction of the problem with instructions</strong><br>
Clone the angular repo to Windows. If <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="184363285" data-permission-text="Title is private" data-url="https://github.com/angular/angular/issues/12420" data-hovercard-type="issue" data-hovercard-url="/angular/angular/issues/12420/hovercard" href="https://github.com/angular/angular/issues/12420">#12420</a> is not fixed yet add the line</p>
<blockquote>
<p dir="auto">benchpress/src<br>
to the top of<br>
./scripts/windows/packages.txt<br>
Run the create-symlinks.sh script, observe there is no symlink to facade in @angular/upgrade/src/ . After following the other instructions in the developer guide run build.sh and see the error listed above.</p>
</blockquote>
<p dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong><br>
Its broken and best to fix in a way that the issue isn't likely to be reintroduced.</p>
<p dir="auto"><strong>Please tell us about your environment:</strong></p>

<p dir="auto">Windows 10, Bash scripts run on MINGW64 that came with my git installation.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.X<br>
Angular Master Branch forked today.</li>
<li><strong>Browser:</strong> [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]<br>
N/A</li>
<li><strong>Language:</strong> [all | TypeScript X.X | ES6/7 | ES5]<br>
N/A</li>
<li><strong>Node (for AoT issues):</strong> <code class="notranslate">node --version</code> =<br>
N/A</li>
</ul>