Open bkimminich opened 5 years ago
A failing build can be found here: https://travis-ci.org/bkimminich/juice-shop/jobs/433126736#L715
The component unit test works fine (https://github.com/bkimminich/juice-shop/blob/gsoc-frontend/frontend/src/app/app.component.spec.ts#L41). Only when doing --aot
/--prod
builds this error occurs.
Any hint for what might be wrong is appreciated! :sos:
A seemingly related issue: https://github.com/angular/angular/issues/23609
Maybe you can be helped by seeing this example from another library https://github.com/dschnelldavis/angular2-json-schema-form/issues/189
When importing and configuring this module as documented the above errors occurs. See https://github.com/bkimminich/juice-shop/blob/gsoc-frontend/frontend/src/app/app.module.ts#L128.
The behavior can be reproduced by
git clone https://github.com/bkimminich/juice-shop
cd juice-shop
git checkout gsoc-frontend
npm install
I did not experience this problem when using e.g.
ng-io
which is a fork from the same origin repo, but unfortunately without yourngZone.runOutsideAngular
fix.