0

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

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; import { AppModule } from './app/app.module';

platformBrowserDynamic().bootstrapModule(AppModule) .catch(err => console.error(err));

1 Answer 1

0

Almost always Maximum call stack size exceeded error is the consquence of an infinite loop. Given information doesn't point to a possible place in the code that triggers it.

The call stack of the error should give enough information to find the source of your error though.

Additionally, please make sure that you did not add any components, directives, and pipes in the import array of modules.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.