Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'? - Alternatively provide the compiler with 'import "@angular/compiler";' before bootstrapping. code example
Example: ngular JIT compilation failed: '@angular/compiler' not loaded!
// run
> npm i
// and then rebuild
> ng serve