angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Error in Maximum call stack size exceeded

Open LapassetAlexis opened this issue 9 years ago • 9 comments

Bug Report or Feature Request

  • [x] bug report
  • [ ] feature request

Versions.

@angular/cli: 1.0.0-rc.2 node: 6.9.2 os: win32 x64 @angular/common: 2.4.9 @angular/compiler: 2.4.9 @angular/core: 2.4.9 @angular/forms: 2.4.9 @angular/http: 2.4.9 @angular/platform-browser: 2.4.9 @angular/platform-browser-dynamic: 2.4.9 @angular/router: 3.4.9 @angular/cli: 1.0.0-rc.2 @angular/compiler-cli: 2.4.9

Repro steps.

I run ng serv / ng test or ng build and i have : "ERROR in Maximum call stack size exceeded"

The log given by the failure.

After "ng serve" image After I save one time and all is alright : image

But for "ng test": image

Desired functionality.

I have this issue since 3 - 4 days. Any idea to resolve this ?

Thx a lot :)

LapassetAlexis avatar Mar 15 '17 07:03 LapassetAlexis

I have no idea. Never ran into it myself. Do you have a repo that I can checkout and see this?

filipesilva avatar Mar 18 '17 13:03 filipesilva

I'm also having this problem in Https://github.com/Rodrigo54/angular2

When I give ng serve it displays the error, but if I change some file the error disappears With this I can not use ng build and ng test

Versions.

@angular/cli: 1.0.0 node: 7.5.0 os: win32 x64 @angular/common: 4.0.0 @angular/compiler: 4.0.0 @angular/core: 4.0.0 @angular/forms: 4.0.0 @angular/http: 4.0.0 @angular/platform-browser: 4.0.0 @angular/platform-browser-dynamic: 4.0.0 @angular/router: 4.0.0 @angular/cli: 1.0.0 @angular/compiler-cli: 4.0.0

Rodrigo54 avatar Mar 26 '17 02:03 Rodrigo54

I have resolve this.

I had a parent import module inside a child module. That doing an "import loop". Check ?

LapassetAlexis avatar Mar 27 '17 08:03 LapassetAlexis

https://github.com/angular/angular-cli/issues/6309 Similar issue but scenario is different. @filipesilva Please take a look at below repo https://github.com/vaibhavbparikh/circular-routes

vaibhavbparikh avatar May 14 '17 12:05 vaibhavbparikh

Closing this being tracked at above issue.

sumitarora avatar May 15 '17 01:05 sumitarora

@alapasset Nice!Thank you👏🏼

DenisKondrachukYi avatar Jun 14 '17 10:06 DenisKondrachukYi

revisen la manera en que utilizan el router de cada modulo, tenía este mismo problema y era que estaba declarando mal el router en uno de mis modulos

kasius avatar Sep 21 '17 20:09 kasius

This is due to the modules which are calling in loop that never comes out of it. check the module references/imports to resolve it.

nikhildesu avatar Nov 08 '17 06:11 nikhildesu

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.