Title: LOCALE_ID is being set before APP_INITIALIZER finish execution - [ng serve only] · Issue #34701 · angular/angular · GitHub
Open Graph Title: LOCALE_ID is being set before APP_INITIALIZER finish execution - [ng serve only] · Issue #34701 · angular/angular
X Title: LOCALE_ID is being set before APP_INITIALIZER finish execution - [ng serve only] · Issue #34701 · angular/angular
Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes. It is a breaking change. Description LOCALE_ID is being set before APP_INITIALIZER funct...
Open Graph Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes. It is a breaking change. Description LOCALE_ID i...
X Description: 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes. It is a breaking change. Description LOCALE_ID i...
Opengraph URL: https://github.com/angular/angular/issues/34701
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"LOCALE_ID is being set before APP_INITIALIZER finish execution - [ng serve only]","articleBody":"# 🐞 Bug report\r\n\r\n### Command (mark with an `x`)\r\n- [ ] new\r\n- [ ] build\r\n- [x] serve\r\n- [ ] test\r\n- [ ] e2e\r\n- [ ] generate\r\n- [ ] add\r\n- [ ] update\r\n- [ ] lint\r\n- [ ] xi18n\r\n- [ ] run\r\n- [ ] config\r\n- [ ] help\r\n- [ ] version\r\n- [ ] doc\r\n\r\n\r\n### Is this a regression?\r\n\r\nYes. It is a breaking change.\r\n\r\n### Description\r\nLOCALE_ID is being set before APP_INITIALIZER function finish execution.\r\nInterestingly, this behavior can be observed only with ng serve. Both repositories will work fine on stackblitz.\r\n\r\n## 🔬 Minimal Reproduction\r\nHere is the reproduction repo:\r\nhttps://stackblitz.com/github/TomaszCz/angular-ivy-LOCALID\r\nand the same repo after **ng update @angular/core @angular/cli --next** \r\nhttps://stackblitz.com/github/TomaszCz/angular-ivy-LOCALID/tree/angular9\r\n\r\nclone and run **ng serve** the updated one will not work - the locale value will be undefined.\r\n\r\n## 🔥 Exception or Error\r\nAfter update:\r\n\r\n\r\nBefore the update:\r\n\r\n\r\n\r\n## 🌍 Your Environment\r\nBefore update:\r\n\u003cpre>\u003ccode>\r\nC:\\a\\AngularPOC\\angular>ng version\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n\r\n\r\nAngular CLI: 8.3.22\r\nNode: 12.3.1\r\nOS: win32 x64\r\nAngular: 8.2.14\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.803.22\r\n@angular-devkit/build-angular 0.803.22\r\n@angular-devkit/build-optimizer 0.803.22\r\n@angular-devkit/build-webpack 0.803.22\r\n@angular-devkit/core 8.3.22\r\n@angular-devkit/schematics 8.3.22\r\n@angular/cli 8.3.22\r\n@ngtools/webpack 8.3.22\r\n@schematics/angular 8.3.22\r\n@schematics/update 0.803.22\r\nrxjs 6.5.4\r\ntypescript 3.5.3\r\nwebpack 4.39.2\r\n\u003c/code>\u003c/pre>\r\n\r\nAfter update:\r\n\u003cpre>\u003ccode>\r\nC:\\a\\AngularPOC\\angular>ng version\r\n\r\n _ _ ____ _ ___\r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | |\r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | |\r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n \r\n\r\nAngular CLI: 9.0.0-rc.8\r\nNode: 12.3.1\r\nOS: win32 x64\r\n\r\nAngular: 9.0.0-rc.8\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.8\r\n@angular-devkit/build-angular 0.900.0-rc.8\r\n@angular-devkit/build-optimizer 0.900.0-rc.8\r\n@angular-devkit/build-webpack 0.900.0-rc.8\r\n@angular-devkit/core 9.0.0-rc.8\r\n@angular-devkit/schematics 9.0.0-rc.8\r\n@ngtools/webpack 9.0.0-rc.8\r\n@schematics/angular 9.0.0-rc.8\r\n@schematics/update 0.900.0-rc.8\r\nrxjs 6.5.4\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\u003c/code>\u003c/pre>\r\n\r\n\r\nI see similar closed issue\r\nhttps://github.com/angular/angular/issues/31465\r\nand the fix https://github.com/angular/angular/pull/31983/commits/08c449dd746bae31ba228164054b90c8402de20f\r\n\r\nhttps://github.com/angular/angular/pull/31983","author":{"url":"https://github.com/TomaszCz","@type":"Person","name":"TomaszCz"},"datePublished":"2020-01-09T13:28:44Z","url":"https://github.com/angular/angular/issues/34701"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1f91ed10-d6cb-4c68-6ff9-65d94106f55b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DD74:2AAD2E:143C5DC:1AFE949:6B0130A0 |
| html-safe-nonce | 13268de4fdbe5de9f543002b11c7c77d1a0435205069521041124db1932f08c0 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDc0OjJBQUQyRToxNDNDNURDOjFBRkU5NDk6NkIwMTMwQTAiLCJ2aXNpdG9yX2lkIjoiNjU3NDA1MjA5MzgxOTE3MDk3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd9d874939b905bbf4d5e82f94ab7b6aa7a9a6f4d291e4ab3023ce9ee840bf17 |
| hovercard-subject-tag | issue:547616624 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/34701/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81642d01a7a03677d42a7a39f6ffc8464f336db88f87b2e35dbb630ac4312990/angular/angular/issues/34701 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81642d01a7a03677d42a7a39f6ffc8464f336db88f87b2e35dbb630ac4312990/angular/angular/issues/34701 |
| og:image:alt | 🐞 Bug report Command (mark with an x) new build serve test e2e generate add update lint xi18n run config help version doc Is this a regression? Yes. It is a breaking change. Description LOCALE_ID i... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | TomaszCz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width