<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 I execute ng-xi18n, I get the following:</p>
<p dir="auto">TypeError: Cannot read property 'kind' of undefined<br>
at maybeGetSimpleFunction (C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:34:41)<br>
at C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:242:41<br>
at visitEachNode (C:\SL\src\Clientnode_modules\typescript\lib\typescript.js:8247:30)<br>
at Object.forEachChild (C:\SL\src\Clientnode_modules\typescript\lib\typescript.js:8407:24)<br>
at MetadataCollector.getMetadata (C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:204:12)<br>
at ReflectorHost.getMetadataFor (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\reflector_host.js:224:43)<br>
at StaticReflector.getModuleMetadata (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\static_reflector.js:484:40)<br>
at Extractor.readFileMetadata (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\extract_i18n.js:50:51)<br>
at C:\SL\src\Clientnode_modules@angular\compiler-cli\src\extract_i18n.js:87:74<br>
at Array.map (native)<br>
Extraction failed</p>
<p dir="auto"><strong>Expected behavior</strong><br>
At least a better error message, or an actual xlif output.</p>
<p dir="auto"><strong>Reproduction of the problem</strong><br>
I do not have a simple repro. At least understanding what the problem could be would help.</p>
<h2 dir="auto"><strong>What is the motivation / use case for changing the behavior?</strong></h2>
<p dir="auto"><strong>Please tell us about your environment:</strong><br>
Windows.</p>
<ul dir="auto">
<li><strong>Angular version:</strong> 2.0.0</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>  (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"><pre class="notranslate"><code class="notranslate">[x] bug report =&gt; search github for a similar issue or PR before submitting
</code></pre></div>
<p dir="auto"><strong>Current behavior</strong></p>
<p dir="auto">The project <a href="https://github.com/beginor/learning-angular2">https://github.com/beginor/learning-angular2</a> produces an error message "Cannot read property 'type' of 'null'".</p>
<p dir="auto">From a Stack Overflow question:<br>
<a href="http://stackoverflow.com/questions/39190493/get-cannot-read-property-type-of-null-using-angular2-aot-ngc-compiler-with-r" rel="nofollow">http://stackoverflow.com/questions/39190493/get-cannot-read-property-type-of-null-using-angular2-aot-ngc-compiler-with-r</a></p>
<p dir="auto"><strong>Expected behavior</strong></p>
<p dir="auto">The compiler should report a message detailing the unsupported feature or produce a working program.</p>
<p dir="auto"><strong>Reproduction of the problem</strong></p>
<p dir="auto">Execute <code class="notranslate">ngc</code> on the project in <a href="https://github.com/beginor/learning-angular2">https://github.com/beginor/learning-angular2</a></p>