How to trace NullInjectorError which appears in Production environment only

yesss, I tried “optimization”:false in angular.json file and it’s worked for me!!