ng-apexcharts
ng-apexcharts copied to clipboard
Angular 13 Error: Module build failed
Since one week ago, the building of two-years angular application is failing. This is the message shown at console:
./node_modules/ng-apexcharts/fesm2015/ng-apexcharts.mjs - Error: Module build failed (from ./node_modules/@angular-devkit/build-angular/src/babel/webpack-loader.js):
TypeError: Cannot create property 'message' on string '/opt/tomcat/.jenkins/workspace/DEV_WEB_BRANCHED/node_modules/ng-apexcharts/fesm2015/ng-apexcharts.mjs: This application depends upon a library published using Angular version 15.2.9, which requires Angular version 14.0.0 or newer to work correctly.
These are my dependencies:
"dependencies": {
"@angular/animations": "~13.3.6",
"@angular/cdk": "^13.3.6",
"@angular/common": "~13.3.6",
"@angular/compiler": "~13.3.6",
"@angular/core": "~13.3.6",
"@angular/forms": "~13.3.6",
"@angular/localize": "~13.3.6",
"@angular/platform-browser": "~13.3.6",
"@angular/platform-browser-dynamic": "~13.3.6",
"@angular/router": "~13.3.6",
...
"ng-apexcharts": "^1.5.1",
...
},
+1
+1
+1
+1
#276 Please see this issue. it will resolve. Basically the ^ symbol taking higher version. ( from "^1.5.1" to "1.8.0" but not up to to 2.0.0) and ~ symbol take only to lower version ( from "~1.5.1" to "1.5.9" but not up to to 1.6.0)
I was facing similar issue. Try "npm i [email protected]"
I was facing a similar problem, I solved the problem by steps:
a) Delete 'ng-apexcharts' folder in 'node_modules'
b) In file package from Angular project I am set to follow version:
"apexcharts": "^3.44.0", "ng-apexcharts": "^1.7.4"
c) Then execute the command "npm install". After that the problem was solved here.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.