DEV Community

Discussion on: Uncaught TypeError: Cannot read property 'xyz' of undefined

Collapse
hankchiutw profile image
Hank Chiu

ngcc would compile your node_modules to be Ivy-compatible. In my case, I just add "postinstall": "ngcc" in package.json scripts to get rid of such errors.

Thread Thread
jwp profile image
John Peters Author

This is not a solution to problem described. Ng build uses ngcc