Use the "aot" option in the browser builder instead. code example Example 1: angular ng serve with custom port ng serve --port 4401 Example 2: angular serve open ng serve -o