Aspnetcore-angular-universal: Production mode error

Created on 4 Jun 2018  路  5Comments  路  Source: TrilonIO/aspnetcore-angular-universal

Production mode error since recent changes

NodeInvocationException: StaticInjectorError(n)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
Right-hand side of 'instanceof' is not an object
TypeError: StaticInjectorError(n)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
StaticInjectorError(Platform: core)[InjectionToken Application Initializer -> InjectionToken DocumentToken]:
Right-hand side of 'instanceof' is not an object

Most helpful comment

FYI, PR: #639 fixes it for me

All 5 comments

Setting preserve class names fixes this issue. #639

Merged in @GRIMMR3AP3R's 馃檹 PR: https://github.com/MarkPieszak/aspnetcore-angular2-universal/pull/639
@LiverpoolOwen Can you see if updating that fixes it for you as well?

FYI, PR: #639 fixes it for me

Great! Closing as fixed thanks to Grimm 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Flood picture Flood  路  14Comments

JohnGalt1717 picture JohnGalt1717  路  14Comments

MarkPieszak picture MarkPieszak  路  30Comments

consigliory picture consigliory  路  29Comments

MarkPieszak picture MarkPieszak  路  41Comments