Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular · GitHub
Open Graph Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular
X Title: Angular 16 SSR not retrieving data from http request · Issue #50562 · angular/angular
Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo shows that it was working in a15: https:/...
Open Graph Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s...
X Description: 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s...
Opengraph URL: https://github.com/angular/angular/issues/50562
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Angular 16 SSR not retrieving data from http request","articleBody":"# 🐞 Bug report\r\n\r\n#### What modules are related to this issue?\r\n\r\n- [ ] builders\r\n- [ ] common\r\n- [X] express-engine\r\n\r\n### Is this a regression?\r\n\r\nYes, the previous version in which this bug was not present was: angular 15.2.0\r\nthis repo shows that it was working in a15: https://github.com/echotech11/ssr-problem-15\r\n\r\n### Description\r\n\r\nIn a new angular 16 app I have found that SSR will not retrieve data in any component other than the app component.\r\n\r\n## 🔬 Minimal Reproduction\r\nI have provided a minimum repo to show the issue. I generated this project with ```ng new``` then added ssr ```ng add @nguniversal/express-engine``` and added the needed code to reproduce the issue.\r\nhttps://github.com/echotech11/ssr-problem\r\nsteps to reproduce:\r\n1. ```git clone https://github.com/echotech11/ssr-problem```\r\n2. ```npm ci```\r\n3. ```npm run dev:ssr```\r\n4. navigate to http://localhost:4200\r\n5. CTRL+U in browser will show SSR retrieved the data.\r\n6. Comment out line 3 in app.component.html\r\n7. navigate to http://localhost:4200/test\r\n8. CTRL+U in browser will show SSR did not retrieve the data.\r\n\r\n\r\nI have also made the same repo in angular 15 where SSR is working correctly using basically the same code.\r\nhttps://github.com/echotech11/ssr-problem-15\r\n\r\n## 🔥 Exception or Error\r\nNo errors\r\n\r\n## 🌍 Your Environment\r\n\r\n\u003cpre>\u003ccode>\r\n _ _ ____ _ ___ \r\n / \\ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|\r\n / △ \\ | '_ \\ / _` | | | | |/ _` | '__| | | | | | | \r\n / ___ \\| | | | (_| | |_| | | (_| | | | |___| |___ | | \r\n /_/ \\_\\_| |_|\\__, |\\__,_|_|\\__,_|_| \\____|_____|___|\r\n |___/\r\n \r\n\r\nAngular CLI: 16.0.4\r\nNode: 18.16.0\r\nPackage Manager: npm 9.5.1\r\nOS: win32 x64\r\n\r\nAngular: 16.0.4\r\n... animations, cli, 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.1600.4\r\n@angular-devkit/build-angular 16.0.4\r\n@angular-devkit/core 16.0.4\r\n@angular-devkit/schematics 16.0.4\r\n@nguniversal/builders 16.0.2\r\n@nguniversal/express-engine 16.0.2\r\n@schematics/angular 16.0.4\r\nrxjs 7.8.1\r\ntypescript 5.0.4\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/echotech11","@type":"Person","name":"echotech11"},"datePublished":"2023-06-02T15:51:59Z","url":"https://github.com/angular/angular/issues/50562"}
| 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:ea6d5d9d-71c0-035c-48a2-b02104e42351 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9184:31E99C:177D8B3:1F58593:6B014370 |
| html-safe-nonce | b85daac3c5f42578eca1447adf9ae64a84b5524979242fa5d634de61a16b45f4 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MTg0OjMxRTk5QzoxNzdEOEIzOjFGNTg1OTM6NkIwMTQzNzAiLCJ2aXNpdG9yX2lkIjoiMzk2MDI4MDYxNDA0NDc3OTM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 77da69c716296bc5fee20e4ffe6af05baf01457313b1b615a950609d1e2cad6d |
| hovercard-subject-tag | issue:1739265773 |
| 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/50562/issue_layout |
| twitter:image | https://opengraph.githubassets.com/729b22098e3a545bdc50744fec9b3ec12ab5115bf16cf0f7ed85e3efdd878ead/angular/angular/issues/50562 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/729b22098e3a545bdc50744fec9b3ec12ab5115bf16cf0f7ed85e3efdd878ead/angular/angular/issues/50562 |
| og:image:alt | 🐞 Bug report What modules are related to this issue? builders common express-engine Is this a regression? Yes, the previous version in which this bug was not present was: angular 15.2.0 this repo s... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | echotech11 |
| 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