It works fine when I tested using ng serve. The error appears after I built the code (ng build --prod) and sent it to my Linux server. I\'ve search
ng serve
ng build --prod