Angular Build Fails: "Maximum call stack size exceeded"

Discussão em 'Angular' iniciado por seifou_eddine, Novembro 25, 2024.

  1. I’m working on an Angular project and encountered multiple issues when trying to run the application using ng serve. The build fails with the following errors:

    ./src/main.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
    Error: Maximum call stack size exceeded

    ./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js):
    Error: Maximum call stack size exceeded

    Error: Can't resolve './node_modules/angular-archwizard/styles/archwizard.css' in '/home/seifou/projects/monitor-dz/monitorDZ-FRONT'


    Here’s what I’ve tried so far:

    • Checked for circular dependencies in my AppModule and other modules but didn’t find any obvious issues.
    • Cleared node_modules and reinstalled dependencies using npm install.
    • Updated my angular.json to ensure all styles are properly included.

    Relevant details:

    • Angular version: 16.2.0
    • Node version: 18.19.1

    Any guidance on resolving these issues would be greatly appreciated!

    Continue reading...

Compartilhe esta Página