79413437

Date: 2025-02-05 01:22:27
Score: 0.5
Natty:
Report link

I know this question is pretty old but I think its still relivant with Angular 19

I have a library that uses $localize I currently import @angular/localize/init in my libraries entry file

This works fine, however, when I serve an application that uses my library, I get the following warning

▲ [WARNING] Direct import of '@angular/localize/init' detected. This may lead to undefined behavior. [plugin angular-localize-init-warning]

    libs/aspect/ui/src/index.ts:4:7:
      4 │ import '@angular/localize/init';

There must be an official way to do this but I cant find it :(

For context, I am using an nx monorepo.

Reasons:
  • Blacklisted phrase (1): :(
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Lightweight