Title: SSR not working with ng · Issue #10635 · angular/angular-cli · GitHub
Open Graph Title: SSR not working with ng · Issue #10635 · angular/angular-cli
X Title: SSR not working with ng · Issue #10635 · angular/angular-cli
Description: Versions Angular CLI: 6.0.0 Node: 8.11.0 OS: darwin x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-browser-dynamic, platform-server, router Pa...
Open Graph Description: Versions Angular CLI: 6.0.0 Node: 8.11.0 OS: darwin x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-bro...
X Description: Versions Angular CLI: 6.0.0 Node: 8.11.0 OS: darwin x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-bro...
Opengraph URL: https://github.com/angular/angular-cli/issues/10635
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"SSR not working with ng","articleBody":"\u003c!--\r\nWe will close this issue if you don't provide the needed information.\r\nFor feature requests, delete the form below and describe the requirements and use case.\r\n-->\r\n\r\n### Versions\r\n```\r\nAngular CLI: 6.0.0\r\nNode: 8.11.0\r\nOS: darwin x64\r\nAngular: 6.0.0\r\n... animations, cli, common, compiler, compiler-cli, core, forms\r\n... http, language-service, platform-browser\r\n... platform-browser-dynamic, platform-server, router\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.6.0\r\n@angular-devkit/build-angular 0.6.0\r\n@angular-devkit/build-optimizer 0.6.0\r\n@angular-devkit/core 0.6.0\r\n@angular-devkit/schematics 0.6.0\r\n@ngtools/webpack 6.0.0\r\n@schematics/angular 0.6.0\r\n@schematics/update 0.6.0\r\nrxjs 6.1.0\r\ntypescript 2.7.2\r\nwebpack 4.6.0\r\n```\r\n\r\n### Repro steps\r\n* clone repo: https://github.com/deebloo/ng6-ssr-error\r\n* run `./build.sh`\r\n* run server: `node dist/server`\r\n* open app: localhost:4000\r\n\r\n### Observed behavior\r\n\r\nA 500 errors occurs\r\n\r\n```\r\nTypeError: StaticInjectorError[InjectionToken Application Initializer -> InjectionToken DocumentToken]:\r\n StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:\r\n Right-hand side of 'instanceof' is not an object\r\n at bt (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:87380)\r\n at gt (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:87255)\r\n at ir (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:110026)\r\n```\r\n\r\n### Desired behavior\r\nApp is served correctly\r\n\r\n### Mention any other details that might be useful (optional)\r\nThis works fine with Angular 6 and Angular CLI 1.7 but fails with Angular 6 and Angular CLI 6.\r\n","author":{"url":"https://github.com/deebloo","@type":"Person","name":"deebloo"},"datePublished":"2018-05-04T12:31:02Z","url":"https://github.com/angular/angular-cli/issues/10635"}
| 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:73591674-0b70-5481-ed73-cfc8ee167c37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D948:2652DC:1AF395C:22654EE:6B013D72 |
| html-safe-nonce | c823efab42939467b88bda4224ecf3aff8427ab1da4ef48def01adf9234d47cb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTQ4OjI2NTJEQzoxQUYzOTVDOjIyNjU0RUU6NkIwMTNENzIiLCJ2aXNpdG9yX2lkIjoiMTkwMjE5OTM3NzQ4NTcwODY1OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b43caa9981f17be114e44a83e30037f7d2ff4c981ab20864490e7a3e12e0f548 |
| hovercard-subject-tag | issue:320257240 |
| 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/10635/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0a90bb74502780fbc76031f40e649a887a83092c17de674a9d52a35497176478/angular/angular-cli/issues/10635 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0a90bb74502780fbc76031f40e649a887a83092c17de674a9d52a35497176478/angular/angular-cli/issues/10635 |
| og:image:alt | Versions Angular CLI: 6.0.0 Node: 8.11.0 OS: darwin x64 Angular: 6.0.0 ... animations, cli, common, compiler, compiler-cli, core, forms ... http, language-service, platform-browser ... platform-bro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | deebloo |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width