Ionic 5 --prod build error

This resolved the problem for me:

Also see: