Warning regarding CommonJS or AMD dependencies when building app #694
-
Hi, Just evaluating transloco as an alternative ngx-translate as it seems to be a more buoyant community however upon installation we get the following warning: - Warning: C:\Caboodal\Auxilio\src\Caboodal.Auxilio.Client\node_modules@ngneat\transloco\fesm2022\ngneat-transloco.mjs depends on 'flat'. CommonJS or AMD dependencies can cause optimization bailouts. Is this anything to be concerned about? We are using Angular 16 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@andyb70 That's a known warning because If they don't release it soon I'll consider making my own implementation since Transloco's use case is fairly simple, just nested objects and strings. I don't think this should prevent migration but that's your call of course 🙂 |
Beta Was this translation helpful? Give feedback.
@andyb70 That's a known warning because
flat
is a CommonJS dependency, I'm waiting for v6 to be released which is ESM.If they don't release it soon I'll consider making my own implementation since Transloco's use case is fairly simple, just nested objects and strings.
I don't think this should prevent migration but that's your call of course 🙂