Custom component - failing in --prod mode

Problem solved.
I found this thread which helped

I am not using lazy loading, so I had to remove the component module file and declare EarthMapComponent in app.module.ts