-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
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
Package Version
-----------------------------------------------------------
@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0
Repro steps
- clone repo: https://github.com/deebloo/ng6-ssr-error
- run
./build.sh
- run server:
node dist/server
- open app: localhost:4000
Observed behavior
A 500 errors occurs
TypeError: StaticInjectorError[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
Right-hand side of 'instanceof' is not an object
at bt (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:87380)
at gt (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:87255)
at ir (/Users/dannyblue/Documents/projects/foo/dist/server.js:1182:110026)
Desired behavior
App is served correctly
Mention any other details that might be useful (optional)
This works fine with Angular 6 and Angular CLI 1.7 but fails with Angular 6 and Angular CLI 6.
ArthurBrito, codediodeio, naveedahmed1, linusbrolin, coryrylan and 16 more
Metadata
Metadata
Assignees
Labels
No labels