apexcharts / ng-apexcharts

ng-apexcharts is an implementation of apexcharts for angular. It comes with one simple component that enables you to use apexcharts in an angular project.
MIT License
311 stars 78 forks source link

Compile ERROR in ./node_modules/ng-apexcharts/fesm5/ng-apexcharts.js #54

Open lixaotec opened 4 years ago

lixaotec commented 4 years ago

It doesnt work with ng-apexcharts.

But it does work with "ng serve"

npm run-script ng build -- --prod --aot --vendor-chunk --common-chunk --delete-output-path --buildOptimizer --base-href /

ERROR in ./node_modules/ng-apexcharts/fesm5/ng-apexcharts.js Module build failed: Error: Debug Failure. False expression. at Object.assertDefined (\node_modules\@angular-devkit\build-optimizer\node_modules\typescript\lib\typescript.js:4507:13)

angular 6.1.10 "typescript": "^2.8.0", "apexcharts": "~3.11.2", "ng-apexcharts": "~1.2.1",

junedchhipa commented 4 years ago

Can you please upgrade apexcharts to the latest version (3.16.1 as of now) and try again?

lixaotec commented 4 years ago

Dear @junedchhipa , thanks for the quickly reply.

I just test again with those versions youve mentioned, but ended in the same error.

Is there any workaround, other than I upgrade to ng 7?

Thanks.

Yuvamac commented 4 years ago

@lixaotec, Same here i have installed in angular 6.1.10 Same error while doing production build.

Does it work with latest angular-9x without error ?

Thanks.

lixaotec commented 4 years ago

It does work with ng 7+

shershahh commented 4 years ago

i am also facing the same error with angular v6.1. i'm using latest version of apex charts & ng-apex charts. is there any solution to resolve this.

lixaotec commented 4 years ago

ive ended upgrading to v8, so no more need this. will let open for others

mwassAndroid commented 4 years ago

This error still occurs with version"apexcharts": "^3.19.3", has anyone managed to resolve

biel-correa commented 3 years ago

Same in "apexcharts": "^3.26.0"

Angular CLI: 6.1.5
Node: 12.16.3
OS: win32 x64
Angular: 6.1.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.7.5
@angular-devkit/build-angular     0.7.5
@angular-devkit/build-optimizer   0.7.5
@angular-devkit/build-webpack     0.7.5
@angular-devkit/core              0.7.5
@angular-devkit/schematics        0.7.5
@angular/cli                      6.1.5
@angular/localize                 11.2.9
@ngtools/webpack                  6.1.5
@schematics/angular               0.7.5
@schematics/update                0.7.5
rxjs                              6.0.0
typescript                        2.7.2
webpack                           4.9.2

edit: If I build without --prod it works