Title: Providing a DI token in commonEngine.render() does not provide its value to application · Issue #26323 · angular/angular-cli · GitHub
Open Graph Title: Providing a DI token in commonEngine.render() does not provide its value to application · Issue #26323 · angular/angular-cli
X Title: Providing a DI token in commonEngine.render() does not provide its value to application · Issue #26323 · angular/angular-cli
Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description Prior to upgrading to v17 our application passed express' req/res as REQUEST/RESPONSE DI Tokens through the render function ...
Open Graph Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description Prior to upgrading to v17 our application passed express' req/res as REQUEST/RESPONS...
X Description: Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description Prior to upgrading to v17 our application passed express' req/res as REQUEST...
Opengraph URL: https://github.com/angular/angular-cli/issues/26323
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Providing a DI token in commonEngine.render() does not provide its value to application","articleBody":"### Which @angular/* package(s) are the source of the bug?\n\nDon't known / other\n\n### Is this a regression?\n\nYes\n\n### Description\n\nPrior to upgrading to v17 our application passed express' req/res as REQUEST/RESPONSE DI Tokens through the render function of the engine in server.ts. Since upgrading to v17 from v16 these DI Token values are always null. \r\n\r\nThis can be seen in the minimal reproduction where all three of APP_BASE_HREF / REQUEST / RESPONSE are null in the console output while running 'ng serve'. \r\n\r\nIf using @angular-devkit/build-angular:browser instead of @angular-devkit/build-angular:application this problem does not occur. I assume there is a different way to provide dependencies from server.ts now but I have not been able to find any updated documentation on it.\n\n### Please provide a link to a minimal reproduction of the bug\n\nhttps://github.com/Ozzcer/angular-ssr-di-issue\n\n### Please provide the exception or error you saw\n\n```true\nConsole outputs null for all DI Tokens provided in server.ts\n```\n\n\n### Please provide the environment you discovered this bug in (run `ng version`)\n\n```true\nAngular CLI: 17.0.0\r\nNode: 18.17.1\r\nPackage Manager: npm 9.6.7\r\nOS: linux x64\r\n\r\nAngular: 17.0.2\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1700.0\r\n@angular-devkit/build-angular 17.0.0\r\n@angular-devkit/core 17.0.0\r\n@angular-devkit/schematics 17.0.0\r\n@angular/cli 17.0.0\r\n@angular/ssr 17.0.0\r\n@schematics/angular 17.0.0\r\nrxjs 7.8.1\r\ntypescript 5.2.2\r\nzone.js 0.14.2\n```\n\n\n### Anything else?\n\n_No response_","author":{"url":"https://github.com/Ozzcer","@type":"Person","name":"Ozzcer"},"datePublished":"2023-11-10T13:04:31Z","url":"https://github.com/angular/angular-cli/issues/26323"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| 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:1a443d85-fd82-1c52-f6e8-27a14f9925f0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D7AE:3EB63C:25CDDD:322C57:6AED445A |
| html-safe-nonce | a4deecb82b90983a089432d0e357619bbd3dc1cc760fc917427c18bb4c11b919 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEN0FFOjNFQjYzQzoyNUNEREQ6MzIyQzU3OjZBRUQ0NDVBIiwidmlzaXRvcl9pZCI6IjIzOTY2ODE0NjE5NDM4NDU5NzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0658b06b0a0c55bdbadb2535a641604553613dacccb72331476271df1576078a |
| hovercard-subject-tag | issue:1987592729 |
| 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-cli/26323/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf5f6d27f7a43b58b92141b9410470d823a38f49367cae0b33bfe0faefa74828/angular/angular-cli/issues/26323 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf5f6d27f7a43b58b92141b9410470d823a38f49367cae0b33bfe0faefa74828/angular/angular-cli/issues/26323 |
| og:image:alt | Which @angular/* package(s) are the source of the bug? Don't known / other Is this a regression? Yes Description Prior to upgrading to v17 our application passed express' req/res as REQUEST/RESPONS... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Ozzcer |
| hostname | github.com |
| expected-hostname | github.com |
| None | 56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| 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 | 9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width