ngx-translate / core

The internationalization (i18n) library for Angular
MIT License
4.53k stars 579 forks source link

Pipe translate not working building with ivy #1265

Open AndreaSpurs9 opened 4 years ago

AndreaSpurs9 commented 4 years ago

I wrapped the ngx library inside my own library and with angular 8 all was working fine. After the update with angular 9 i get the following error:

No pipe found with name 'translate'.

This error happen when i build with --prod and ivy activated. I don't get thie error when 'enableIvy: false'

I fixed it with adding this import 'TranslationServiceChildModule.forChild()' (this is the import to my wrapped module inside my library). It wasn't needed before why i need it now?

Current behavior

No pipe found with name 'translate'.

Expected behavior

The pipe should work also with ivy

Environment


"@ngx-translate/core": "^12.1.2",
"@ngx-translate/http-loader": "^5.0.0",
Angular version: 9.1.12

For Tooling issues:
- Node version: 10.18.1            
GotBinGo commented 4 years ago

This might be interesting to you: https://github.com/ngx-translate/core/issues/1261

Ivy seems to be more strict with module imports missing.