Troubleshooting Angular production build errors — Uncaught TypeError: Cannot read properties of undefined (reading ‘a’)

Balram Chavan
2 min readDec 5, 2022

While working with Angular applications, you may find yourself in a position where your development build is successful with ng serve command, application works fine in browser. However, as soon as you create a production build with command ng build -c production you start getting the Uncaught TypeError: Cannot read properties of undefined (reading 'a') where a could be any other property name or object. The console errors will show the compiled JavaScript…

--

--