Maximum call stack size exceeded with angular 12

This issue has been created 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-09-30
Star Count 84080
Watcher Count 3064
Fork Count 22235
Issue Count 1197

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
Governance vote caching failure 0 2022-08-02 2022-09-01
Add frozen warnings to #959 0 2022-08-04 2022-09-04
Consistent priotitzation for warning messages 0 2022-08-04 2022-09-04
Standardize warning text and components throughout app 0 2022-08-02 2022-09-01
Supply asset list header bug 0 2022-08-02 2022-09-01
Apparently extensions are still verified by Google. 7 2022-04-20 2022-09-15
Map.removePolyline() does not update the map 0 2021-03-31 2022-09-23
library-preload.js not found 1 2017-12-27 2022-09-23
NCrontabViewer throwing InvalidCastException 3 2021-02-07 2022-09-15
Rethink locking support within deegree 3 2022-01-05 2022-08-08
Rostopic hz show no messages. 2 2021-09-29 2022-07-20
Cannot grab the latest version (v0.9.0) of KUTTL by installing it using Krew 2 2021-02-26 2022-09-28
Problems in the datasource/resource evaluation order 1 2022-03-08 2022-08-29
Combined() should forward cancel() to child futures 1 2020-03-27 2022-09-20
Creating a completed Deferred is very heavy 1 2019-11-04 2022-09-20
Dirserv Chrashes when Preserving (delete) a user 11 2021-03-01 2022-09-11
Attach LifecycleEntity before the first Background event 0 2022-05-03 2022-08-27
Cache failing for fully static Windows CI builds for `micromamba` 1 2022-09-15 2022-09-18
Change version name for CI builds of `micromamba` 1 2022-09-15 2022-09-18
DTPLYR will not install on Version 1.4.1717, Ubuntu 20.04.2 LT 3 2021-07-23 2022-09-03
Big Lag With Station Bounced Radios. 0 2022-01-31 2022-09-02
Questions: How does Vale comparable to TextLint in Pugins? 2 2022-03-19 2022-09-18
add versioning/release numbers 0 2021-12-02 2022-09-23
Release compatible with Coq 8.12 5 2020-11-19 2022-09-23
Support `@updatedAt` and `now()` on `BigInt` 0 2022-02-28 2022-08-22
Explicitly set variables 1 2020-08-31 2022-09-05
Blogging: `Continue reading` button appearance 1 2022-03-08 2022-09-15
runc seccomp_notify_respond 1 2022-03-14 2022-09-24
Pluto seg fault for plots MacOS 1 2022-05-17 2022-09-15
Add Github Actions badge to README 0 2020-12-30 2022-07-15
Enabling background sync on a folder changes the display name of the folder 0 2022-04-04 2022-09-12
The startup page does not display properly 4 2021-09-06 2022-08-06
Prepare the package for release and release it 0 2022-07-28 2022-09-23
Client Meeting Notes - October 29, 2021 0 2021-10-29 2022-09-25
Reference-counted AreaHandlers for interactive canvas scenarios 1 2022-04-23 2022-09-21
fix: supports LMSW 0 2021-04-14 2021-11-27
installation error on ubuntu 1 2021-05-01 2022-09-08
Add cargo-rm (from cargo-edit) to cargo proper 5 2022-03-30 2022-08-26
Looking for replacement of dex-member-list 1 2021-10-09 2022-09-21
Upgrade to 1.7.8.6 does not update the SQL schema (module 4.14.0) 9 2022-04-15 2022-09-25
使用异步加载数据,加载好图形显示过程中动画效果没有。而原生echarts有这个效果,怎么解决? 0 2022-03-09 2022-09-18
When borrowing, the token prices don't make sense, don't match 1 2021-01-23 2022-09-11
Cluster affinity does not affect pooler pods 0 2021-04-05 2022-09-29
[influxdb2] Booting influxd fails 7 2021-08-11 2022-09-24
Example for project 0 2018-04-05 2021-12-31
Kubelet flag's docs should render links. 13 2022-02-01 2022-09-27
rename_cluster_node command is broken. 2 2020-10-09 2022-09-19
[Functionbeat] support output to kafka 4 2021-10-08 2022-07-17
selectionHandleColor not applying on themed nested wigets 4 2022-06-05 2022-09-19
SnackBar is attached to wrong Scaffold 13 2022-06-05 2022-09-23