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
Yes, the previous version in which this bug was not present was: Angular 8.x
Description
Well, I just ran ng build --prod --aot && ng run myproject:server:production and when I run node dist/server/main it throws below error when I try to access the localhost.
Error: Can't resolve all parameters for NgLocaleLocalization: (?).
at getUndecoratedInjectableFactory (\MyProject\dist\server\main.js:1:4440360)
at injectableDefOrInjectorDefFactory (\MyProject\dist\server\main.js:1:4441186)
at providerToFactory (\MyProject\dist\server\main.js:1:4442452)
at providerToRecord (\MyProject\dist\server\main.js:1:4438546)
at R3Injector.processProvider (\MyProject\dist\server\main.js:1:4438606)
at provider (\MyProject\dist\server\main.js:1:4438102)
at input.forEach.value (\MyProject\dist\server\main.js:1:4326776)
at Array.forEach ()
at deepForEach (\MyProject\dist\server\main.js:1:4326718)
at R3Injector.processInjectorType (\MyProject\dist\server\main.js:1:4438062)
But when I just run ng serve it runs fine without any issues. So I suspect the issue is with SSR build.
Not really sure if I can reproduce this issue. It was not there until I switched to Angular 9.
I had import '@angular/localize/init'; in polyfills.ts and initially, I thought this was the reason for the error, but when I removed it, it started throwing $localize() is undefined error for which the resolution was to include @angular/localize/init. I am really stuck on this error and there isn't much information on Can't resolve all parameters for NgLocaleLocalization: (?)..
馃敟 Exception or Error
Error: Can't resolve all parameters for NgLocaleLocalization: (?).
at getUndecoratedInjectableFactory (\MyProject\dist\server\main.js:1:4440360)
at injectableDefOrInjectorDefFactory (\MyProject\dist\server\main.js:1:4441186)
at providerToFactory (\MyProject\dist\server\main.js:1:4442452)
at providerToRecord (\MyProject\dist\server\main.js:1:4438546)
at R3Injector.processProvider (\MyProject\dist\server\main.js:1:4438606)
at provider (\MyProject\dist\server\main.js:1:4438102)
at input.forEach.value (\MyProject\dist\server\main.js:1:4326776)
at Array.forEach ()
at deepForEach (\MyProject\dist\server\main.js:1:4326718)
at R3Injector.processInjectorType (\MyProject\dist\server\main.js:1:4438062)
馃悶 Bug report
What modules are related to this issue?
Is this a regression?
Yes, the previous version in which this bug was not present was:
Angular 8.x
Description
Well, I just ran
ng build --prod --aot && ng run myproject:server:production
and when I runnode dist/server/main
it throws below error when I try to access the localhost.But when I just run
ng serve
it runs fine without any issues. So I suspect the issue is with SSR build.Not really sure if I can reproduce this issue. It was not there until I switched to Angular 9.
package.json
I had
import '@angular/localize/init';
inpolyfills.ts
and initially, I thought this was the reason for the error, but when I removed it, it started throwing$localize() is undefined
error for which the resolution was to include@angular/localize/init
. I am really stuck on this error and there isn't much information on Can't resolve all parameters for NgLocaleLocalization: (?)..馃敟 Exception or Error
馃實 Your Environment
The text was updated successfully, but these errors were encountered: