Maximum call stack size exceeded with angular 12

This issue has been tracked since 2022-09-14.

Which @angular/* package(s) are the source of the bug?

compiler

Is this a regression?

Yes

Description

image
image

the same code base working fine with angular 8 but once migrate from angular 12, we are seeing this error.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

No response

Please provide the environment you discovered this bug in (run ng version)

No response

Anything else?

No response

JoostK wrote this answer on 2022-09-14

Without a reproduction this won't be actionable for us, unfortunately.

JoostK wrote this answer on 2022-09-14

This is likely a duplicate of #25226/#32555, an issue with the old ViewEngine compiler. Angular 12 supports compiling libraries with Ivy partial compilation, and the migration guide for adopting Ivy is here.

vittal288 wrote this answer on 2022-09-14

Without a reproduction this won't be actionable for us, unfortunately.

How can I help you or what data do you need to reproduce the issue? Could you please mention

JoostK wrote this answer on 2022-09-14

Without a reproduction this won't be actionable for us, unfortunately.

How can I help you or what data do you need to reproduce the issue? Could you please mention

A Github repo with a runnable reproduction. But as mentioned in #47428 (comment) this is likely an issue in the ViewEngine compiler and I'd suggest that you migrate to building libraries using Ivy instead. Angular 13+ no longer supports ViewEngine compilation meaning that this particular issue is no longer present in latest Angular, hence the suggestion to migrate to Ivy.

vittal288 wrote this answer on 2022-09-14

Without a reproduction this won't be actionable for us, unfortunately.

How can I help you or what data do you need to reproduce the issue? Could you please mention

A Github repo with a runnable reproduction. But as mentioned in #47428 (comment) this is likely an issue in the ViewEngine compiler and I'd suggest that you migrate to building libraries using Ivy instead. Angular 13+ no longer supports ViewEngine compilation meaning that this particular issue is no longer present in latest Angular, hence the suggestion to migrate to Ivy.

I have made the changes as above suggested as like
"angularCompilerOptions": {
"enableIvy": false,
"strictTemplates" : false
}
in tsconfig.json file but still same issue

JoostK wrote this answer on 2022-09-14

That's not what is suggested in the migration guide.

jessicajaniuk wrote this answer on 2022-09-21

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular version.

If the problem still exists in your application, please open a new issue and follow the instructions in the issue template.

vittal288 wrote this answer on 2022-09-26

Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular version.

If the problem still exists in your application, please open a new issue and follow the instructions in the issue template.

I cannot update to the latest version, it needs a lot of approval and a lot of code change and effort. Even though what is the root cause of it and I still see there is the proper solution for this issue. With Angular 8 it was building and compiling filne but post upgrading to latest version, I see this issue occurring

vittal288 wrote this answer on 2022-09-26

That's not what is suggested in the migration guide.

I did not get the solution to fix this issue, could you please share the proper link to fix the issue?

More Details About Repo
Owner Name angular
Repo Name angular
Full Name angular/angular
Language TypeScript
Created Date 2014-09-18
Updated Date 2022-10-05
Star Count 84147
Watcher Count 3063
Fork Count 22247
Issue Count 1201

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date