Open pauldraper opened 4 years ago
Same error using Angular 9
I don't know the consequences of this workaround, but it works for this example and my own uses.
Before app initialization, run:
import { createInterceptingRenderer } from '@angular-contrib/core';
createInterceptingRenderer(undefined, [
undefined,
]).constructor.prototype.isExtended = true;
It skips this code path: https://github.com/trotyl/angular-contrib/blob/c3f0fd144fdf7e823d3910b8688ef051b9ecd606/projects/core/src/render-intercept/render-intercept.module.ts#L88
I could also replicate this issue once the application is built in prod mode and deployed. Any idea when they will fix it ?
Hi Paul, I tried to add your workaround in APP_INITIALIZER but it did not work, still I get stack trace exception.
I am also experiencing this issue. Is this project no longer maintained?
@nmagesh84 try it before boostrapping anything at all, like in main.ts.
ngNoHost
https://github.com/pauldraper/angular-nohost-stack-error
http://localhost:4200/ works.
http://localhost:4200/?prod has the error:
Relevant code: