Runtime error with Angular 9 and Ivy: Cannot read property 'id' of undefined ; Zone
I try to run build
ng build --prod for my Angular app. And it clear show me what problem i have.You can try it to know what you need to fix.
I was finally able to track down the error. I had to comment out all the imported modules in
shared.module.ts and add each module back one at a time. I finally narrowed it down to the include of
angular2-recaptcha. That was including a module called
ReCaptchaModule. I'm currently researching how to upgrade or replace that.
Hopefully this is a good troubleshooting tip to others out there.