Title: bootstrapApplication does not reject when error is throw in a module which is used in importProvidersFrom function. · Issue #49923 · angular/angular · GitHub
Open Graph Title: bootstrapApplication does not reject when error is throw in a module which is used in importProvidersFrom function. · Issue #49923 · angular/angular
X Title: bootstrapApplication does not reject when error is throw in a module which is used in importProvidersFrom function. · Issue #49923 · angular/angular
Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Open Graph Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
X Description: Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angular
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bootstrapApplication does not reject when error is throw in a module which is used in importProvidersFrom function.","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\ncore, platform-browser\n\n### Is this a regression?\n\nNo\n\n### Description\n\nIn non standalone world it was possible to catch errors during bootstrap by catching rejected promise returned by `bootstrapModule` method. Trying to do the same in the standalone version, it doesn't work anymore. Errors are ignored somehow, and promise returned by `bootstrapApplication` never rejects.\r\n\r\nImportant to note is that this behavior is only happening when module is used within `importProvidersFrom` function.\r\n\r\nPlease uncomment line 27-29 to see the problem, `catch` callback is never executed. It is executed when module is imported inside a component's imports array.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://stackblitz.com/edit/angular-dc8jfe?file=src/main.ts\n\n### Please provide the exception or error you saw\n\n```true\nn/a\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nstackblitz has all information.\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/marcincichocki","@type":"Person","name":"marcincichocki"},"datePublished":"2023-04-19T06:44:39Z","url":"https://github.com/angular/angular/issues/49923"}
| 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 | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:ece0060c-60cd-1eae-066a-6b04943c730b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCCE:2F9718:1582566:1CD921E:6B013FEF |
| html-safe-nonce | 4966ef9c177a1257deb584fd5c3681a6cfe803ab553d7f9ac6876b7b45a6f04c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0NFOjJGOTcxODoxNTgyNTY2OjFDRDkyMUU6NkIwMTNGRUYiLCJ2aXNpdG9yX2lkIjoiODY3MTI1ODAwNDI0ODY3NDI4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | aceacbae777e660cae00c10ecdbcebed7b84ad685aface72aa4b4aba4816377d |
| hovercard-subject-tag | repository:24195339 |
| 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/angular/angular/issues/49923 |
| twitter:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/24195339/d4194dc2-d880-43f7-960c-ea30e05c6531 |
| og:image:alt | Deliver web apps with confidence 🚀. Contribute to angular/angular development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-cache |
| 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 | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width