Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Angular 13 Error: Module build failed #280

Open
lroura opened this issue Jul 28, 2023 · 7 comments
Open

Angular 13 Error: Module build failed #280

lroura opened this issue Jul 28, 2023 · 7 comments

Comments

@lroura
Copy link

lroura commented Jul 28, 2023

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",
...
  },
@mohamedsaad1989
Copy link

+1

3 similar comments
@luke37b
Copy link

luke37b commented Jul 28, 2023

+1

@bellib
Copy link

bellib commented Jul 29, 2023

+1

@JoeA3000
Copy link

+1

@Suryaprasath1996
Copy link

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

@krishkarmyal07
Copy link

krishkarmyal07 commented Aug 7, 2023

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

@SergioComputerx
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants