Recently, I got this error when I was working with Angular i18n in the NX project:
Frankly, this error explains the solution itself. I have tried to fix this error by running the ng add @angular/localize
, but unfortunately it produced a lot of errors with dependencies.
In my case I fixed it by installing the @angular/localize
using the yarn
and by adding the import '@angular/localize/init
to the polyfills.ts
: