Can we use CDN instead of installing packages in angular 8. I am trying to use Google charts in angular 8. Installation goes fine but I'm getting some errors while I serve the app and compile fails. I have even added: "skipLibCheck":true
in tsconfig.json file
The errors are like:
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 266:277-303 Can't import the named export 'ChangeDetectionStrategy' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 818:18-27 Can't import the named export 'Component' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 265:28-49 Can't import the named export 'ɵɵngDeclareFactory' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 307:25-49 Can't import the named export 'ɵɵngDeclareInjectable' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 216:28-52 Can't import the named export 'ɵɵngDeclareInjectable' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 857:26-48 Can't import the named export 'ɵɵngDeclareInjector' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 848:26-48 Can't import the named export 'ɵɵngDeclareNgModule' from non EcmaScript module (only default export is available)
ERROR in ./node_modules/angular-google-charts/fesm2015/angular-google-charts.mjs 693:81-83 Can't import the namespace object from non EcmaScript module (only default export is available)
node and angular version used- Angular CLI: 8.0.6 Node: 10.9.0
I cannot upgrade node/angular immediately. So any workaround would be helpful here