ng-apexcharts icon indicating copy to clipboard operation
ng-apexcharts copied to clipboard

Angular 13 Error: Module build failed

Open lroura opened this issue 1 year ago • 8 comments

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",
...
  },

lroura avatar Jul 28 '23 08:07 lroura

+1

mohamedsaad1989 avatar Jul 28 '23 10:07 mohamedsaad1989

+1

luke37b avatar Jul 28 '23 14:07 luke37b

+1

bellib avatar Jul 29 '23 14:07 bellib

+1

JoeA3000 avatar Jul 31 '23 18:07 JoeA3000

#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)

Suryaprasath1996 avatar Aug 06 '23 02:08 Suryaprasath1996

I was facing similar issue. Try "npm i [email protected]"

krishkarmyal07 avatar Aug 07 '23 14:08 krishkarmyal07

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.

SergioComputerx avatar Dec 13 '23 13:12 SergioComputerx

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.

github-actions[bot] avatar Aug 02 '24 14:08 github-actions[bot]