Closed kshkrao3 closed 4 years ago
Does anyone have any idea about this? Angular Team, please look at this once.. :(
Please provide a minimal reproduction. We cannot simply divine the answer 😄
Unhandled Promise rejection: Can't resolve all parameters for NgLocaleLocalization: (?). ; Zone: <root> ; Task: Promise.then ; Value: Error: Can't resolve all parameters for NgLocaleLocalization: (?).
This problem still persists! Did anybody find any solution of this issue!
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
🐞 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 run `node 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';` 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 ## 🌍 Your Environment