Angular Uncaught TypeError: e is not a constructor after build --prod (work on ng serve)
after a long time of trying, I discovered that there is an open bug at angular cli
https://github.com/angular/angular-cli/issues/9929
ng build --prod --base-href="/site/" --aot=false --build-optimizer=false
and for now using --aot=false --build-optimizer=false
temporarily solves the problem.
Ill keep the post updated with official the information and solution that angular team will provide.