Issue: Error: The NgModule 'ApprovalModule' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.
JIT compilation is not recommended for production environments. Consider using AOT mode instead. Alternatively, you can load the JIT compiler by bootstrapping with '@angular/platform-browser-dynamic' or '@angular/platform-server', or manually include the compiler with 'import "@angular/compiler";' before bootstrapping. Error: The NgModule 'ApprovalModule' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.
JIT compilation is not recommended for production environments. Consider using AOT mode instead. Alternatively, you can load the JIT compiler by bootstrapping with '@angular/platform-browser-dynamic' or '@angular/platform-server', or manually include the compiler with 'import "@angular/compiler";' before bootstrapping.
Encountering the above error when navigating from one menu to another. Angular dependencies: "@angular-devkit/build-angular": "~13.0.1", "@angular/cli": "~13.0.1", "@angular/compiler-cli": "~13.0.1", ...
System info: Node:v16.13.1, Npm:8.1.2