robisim74 / angular-l10n

Angular library to translate texts, dates and numbers
MIT License
380 stars 59 forks source link

I encountered this problem: Unexpected value 'TranslateModule' imported by the module 'SharedModule'. Please add an @NgModule annotation. #343

Closed CandyDD closed 9 months ago

CandyDD commented 9 months ago

This problem occurred after I upgraded angular from 15 to 16. The following is my version situation:

angular-l10n:v8.1.2 angular/core: v16.2.12 typescript: v4.9.5

robisim74 commented 9 months ago

I'm surprised that version v8 of this library worked up to Angular v15.

Generally, this library has a version for each major version of Angular, and you shoud upgrade also libraries.

By the way, this library has no TranslateModule.

Please at least post the complete error log.

CandyDD commented 9 months ago

As a last resort, I had to upgrade angular-l10n to the latest version