When I try to load the HTML Compiler component on my production build, I get the following error in console.log
Error: Angular JIT compilation failed: '@angular/compiler' not loaded!
- JIT compilation is discouraged for production use-cases! Consider AOT mode instead.
- Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?
- Alternatively provide the compiler with 'import "@angular/compiler";' before bootstrapping.
Do you know of a workaround for using this component with AOT and the build optimizer? I tried importing @angular.compiler at the top of main.ts and that didn't fix the issue.
Thanks!
When I try to load the HTML Compiler component on my production build, I get the following error in console.log
Do you know of a workaround for using this component with AOT and the build optimizer? I tried importing @angular.compiler at the top of main.ts and that didn't fix the issue.
Thanks!