I moved from angular 12 to angular 13 and I've had a new error. So basically I used to load the culture of the user by importing the locale file.
const localeUri = `@angular/common/locales/${localeId}.js`;
return import(localeUri).then((module) => {
logger.debug("Culture Angular : '" + localeId + "'");
registerLocaleData(module.default);
}).catch((err) => {
logger.fatal("culture not defined for angular", err);
});
This solution use to work with angular12 but not anymore with angular13. Webpack can't find any of the locale.
I tried some solutions found on github but without any posivite results
https://github.com/highlightjs/highlight.js/issues/3223#issuecomment-953337602
https://github.com/angular/angular-cli/issues/22154
Any solution ?