Repository navigation
i18nMissingTranslation error does not exit process #12770
Copy link
Copy link
Closed
Description
Bug Report or Feature Request (mark with an x)
- [x] bug report -> please search issues before submitting
- [ ] feature requestCommand (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] docVersions
Angular CLI: 6.2.4
Node: 8.9.4
Npm : 6.2.0
OS: darwin x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router, service-worker
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.8.4
@angular-devkit/build-angular 0.8.4
@angular-devkit/build-optimizer 0.8.4
@angular-devkit/build-webpack 0.8.4
@angular-devkit/core 0.8.4
@angular-devkit/schematics 0.8.4
@angular/cli 6.2.4
@angular/pwa 0.10.3
@ngtools/webpack 6.2.4
@schematics/angular 0.8.4
@schematics/update 0.8.4
rxjs 6.2.2
typescript 2.9.2
webpack 4.20.2Repro steps
- Add a new translation :
<span i18n>Bonjour !</span> - Run an AOT build :
ng build --i18n-missing-translation=error --prod
The log given by the failure
Date: 2018-10-26T12:39:43.453Z
Hash: f184f10ad8cbd81cf64d
Time: 13230ms
chunk {0} runtime.c4f3bae59727b055292b.js (runtime) 1.46 kB [entry] [rendered]
chunk {1} main.9868d9b237c3a48c54da.js (main) 128 bytes [initial] [rendered]
chunk {2} polyfills.85f47f0bf59079cbc23a.js (polyfills) 130 bytes [initial] [rendered]
chunk {3} styles.1d1e8e5cd7d1ac411293.css (styles) 236 kB [initial] [rendered]
ERROR in Missing translation for message "7497ecc64d067535778ee27affdf5186e965e604" for locale "fr-FR" ("
<div i18n>[ERROR ->]
Bonjour !
</div>
"): /xx/app/src/app/some-component/some-component.html@1:2
# Here it hangs, process never exit, but compilation does not continueDesired functionality
Process should exit with error code
Mention any other details that might be useful
I guess the issue actually comes from angular/angular (maybe around translation_bundle.ts) but I thought here would probably be the best place to open an issue
To give you some more context on my use case : today I must set i18nMissingTranslation to warn on CI/CD or else it will hang until it timeouts (20 minutes !).
It's pretty much my first issue on such a big project, please don't be too harsh with me 🙏 I really searched a lot before opening it, and I don't want to bother anyone
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
alan-agius4 commentedon Oct 26, 2018
Hi, I have tried to replicate this with Angular and CLI version 7 and I was unable to.
Any particular reason you wouldn't want to use 7? There are minimal breaking changes and numerous improvements. Blog release announcement.
If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior.
lucagouty commentedon Oct 26, 2018
Hi @alan-agius4, thank you very much for answering so quickly.
Before submitting I actually updated only cli to 7 but it still didn't work. Though now I tried using fresh Angular 7 project and you are right, it works.
Regarding full angular update, it's only a week old, and unfortunately many of our dependencies are not ready yet. Also,
typescriptupdate do add some breaking changes.Though I guess you're right, I'll just wait for us to be ready to update to v7
angular-automatic-lock-bot commentedon Sep 8, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.