Angular 2 + CLI : Error in Maximum call stack size exceeded

The best way i found to debug this is :

ng serve --aot

It will exit building if any error is found with an understandable error.


I met with the same error. Solved by deleting unnecessary imports.

Cause of this error you have circular module dependency problem.

For example:

'A' module imports (dependent to) 'B' module

'B' module imports (dependent to) 'A' module

I suggest you to build a common module that other modules should import the common module.

If you have unnecessary imports delete unnecessary imports.