question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"TypeError: Cannot read property 'kind' of undefined" when executing ng-xi18n

See original GitHub issue

I’m submitting a … (check one with “x”)

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question

Current behavior When I execute ng-xi18n, I get the following:

TypeError: Cannot read property ‘kind’ of undefined at maybeGetSimpleFunction (C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:34:41) at C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:242:41 at visitEachNode (C:\SL\src\Clientnode_modules\typescript\lib\typescript.js:8247:30) at Object.forEachChild (C:\SL\src\Clientnode_modules\typescript\lib\typescript.js:8407:24) at MetadataCollector.getMetadata (C:\SL\src\Clientnode_modules@angular\tsc-wrapped\src\collector.js:204:12) at ReflectorHost.getMetadataFor (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\reflector_host.js:224:43) at StaticReflector.getModuleMetadata (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\static_reflector.js:484:40) at Extractor.readFileMetadata (C:\SL\src\Clientnode_modules@angular\compiler-cli\src\extract_i18n.js:50:51) at C:\SL\src\Clientnode_modules@angular\compiler-cli\src\extract_i18n.js:87:74 at Array.map (native) Extraction failed

Expected behavior At least a better error message, or an actual xlif output.

Reproduction of the problem I do not have a simple repro. At least understanding what the problem could be would help.

What is the motivation / use case for changing the behavior?

Please tell us about your environment: Windows.

  • Angular version: 2.0.0
  • Browser: [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 ] n/a
  • Language: [all | TypeScript X.X | ES6/7 | ES5] n/a
  • Node (for AoT issues): node --version =
    n/a

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:4
  • Comments:20 (3 by maintainers)

github_iconTop GitHub Comments

5reactions
wiredprogrammercommented, Sep 21, 2016

I’m getting the same typescript error when running the AoT compiler. The typescript compiler compiles fine so I have no idea where to start looking to fix this.

2reactions
wiredprogrammercommented, Oct 4, 2016
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'kind' of undefined at ...
It happened when I pulled code from a branch to my existing running branch which was running via ng serve. Share.
Read more >
ANGULAR 13 TypeError Cannot read property of undefined
In this tutorial, we will see a most common error faced by the Angular developers named as " TypeError Cannot read property of...
Read more >
Get 'Cannot Read Property 'Type' Of Null' Using Angular2 Aot Ngc ...
Angular library build error: TypeError: Cannot read property 'type' of null. Solution: Update. It seems like my diagnosis of this issue was incorrect...
Read more >
[Solved]-Angular 8 : TypeError: Cannot read property 'kind' of ...
Coding example for the question Angular 8 : TypeError: Cannot read property 'kind' of undefined, When build my code for Production-angular.js.
Read more >
"Cannot read property '$$' of undefined" in build : r/sveltejs
Uncaught (in promise) TypeError: Cannot read property '$$' of undefined. Which is coming from this function in the client bundle at the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found