You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi there, using Angular 9.1.7
Whenever I include D3Service among provides, I get this error:
Uncaught 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.
The text was updated successfully, but these errors were encountered:
I solved this by adding adding this to ngcc.config.js (in the same directory as angular.json):
module.exports={packages: {// The d3-ng2-service package is really old and ngcc needs// help to know how to build it.'d3-ng2-service': {entryPoints: {'.': {override: {module: './index.js'}}}}}};
Hi there, using Angular 9.1.7
Whenever I include
D3Service
among provides, I get this error:The text was updated successfully, but these errors were encountered: