import angular compiler before bootstrapping code example Example: ngular JIT compilation failed: '@angular/compiler' not loaded! // run > npm i // and then rebuild > ng serve