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.

ng-xi18n regression 4.0.2 -> 4.0.3

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

The compiler fails with the following error:

ng-xi18n -p src/tsconfig-i18n.json

TypeError: Cannot read property ‘toLowerCase’ of null at Extractor.serialize (…/node_modules/@angular/compiler-cli/src/extractor.js:44:32) at …/node_modules/@angular/compiler-cli/src/extractor.js:32:33 at process._tickCallback (internal/process/next_tick.js:109:7) at Module.runMain (module.js:606:11) at run (bootstrap_node.js:393:7) at startup (bootstrap_node.js:150:9) at bootstrap_node.js:508:3 Extraction failed

Expected behavior

Minimal reproduction of the problem with instructions

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

Please tell us about your environment:

  • Angular version: 4.0.3
  • 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 ]
  • Language: TypeScript 2.2.2

  • Node (for AoT issues): node --version = v6.10.2

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:19
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

30reactions
ocombecommented, Apr 24, 2017

Easy to workaround: you have to specify the format with --i18nFormat (xlf, or xmb). I’ll work on the fix right now though.

6reactions
yuerdevcommented, May 8, 2017

oh,./node_modules/.bin/ng-xi18n --i18nFormat=xmb and perfect

Read more comments on GitHub >

github_iconTop Results From Across the Web

ngx-i18n-combine - npm
Merge i18n files from components and merge to common locale files. Latest version: 1.2.0, last published: a year ago.
Read more >
Cannot GET /assets/i18n/en.json @angular/cli@1.0.1 #6122
json I'm seeing issues with the CLI not serving up anything in my assets/ folder. I have tried every solution in every article...
Read more >
angular npm install and npm audit fix is breaking on ... - Reddit
I moved from my development PC to remote server, to make builds on remote. I did npm i but still getting messages say...
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