This runtime error appeared after migration to Angular9 with switch on Ivy.
Our application it very big so I couldn't create any smaller repo.
Error says:
Uncaught TypeError: Cannot read property 'id' of undefined at registerNgModuleType
I tried:
1. npx ngcc --properties main as proposed here https://github.com/angular/angular/issues/31314
2. ng build / ng build --prod - everything compiles without errors, so I assume every dependency is supported by Ivy
Application works just fine without Ivy and I have no idea how to track down that issue if compiler shows no errors. Any strategy or advice will be helpfull