You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
main-es2015.0fd75965dc41d73c1b29.js:24 TypeError: Cannot set property 'locale' of undefined
at XMLHttpRequest.a.onload [as __zone_symbol__ON_PROPERTYload] (main-es2015.0fd75965dc41d73c1b29.js:24)
at XMLHttpRequest.T (polyfills-es2015.d546a0e4758536877cfd.js:1)
at a.invokeTask (polyfills-es2015.d546a0e4758536877cfd.js:1)
at i.runTask (polyfills-es2015.d546a0e4758536877cfd.js:1)
at c.invokeTask [as invoke] (polyfills-es2015.d546a0e4758536877cfd.js:1)
at h (polyfills-es2015.d546a0e4758536877cfd.js:1)
at XMLHttpRequest.p (polyfills-es2015.d546a0e4758536877cfd.js:1)
REPRO:
ng build --localize
http-serve the built bits
Correct me if I'm wrong, but isnt this is by design...? AOT build in angular won't have the library $localize library and really, there is no need to load this library.
I'd suggest a friendlier error message when this happens and an update to the core documentation to note not to include with localized builds.
You might still need $localize for code translations, but if you're only using it in templates then yes, you might not need it, but then you don't really need Locl in this case
Confusing error when building my app.
REPRO:
Correct me if I'm wrong, but isnt this is by design...? AOT build in angular won't have the library $localize library and really, there is no need to load this library.
I'd suggest a friendlier error message when this happens and an update to the core documentation to note not to include with localized builds.
Ex:
The text was updated successfully, but these errors were encountered: