René's URL Explorer Experiment


Title: ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilation · Issue #32234 · angular/angular-cli · GitHub

Open Graph Title: ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilation · Issue #32234 · angular/angular-cli

X Title: ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilation · Issue #32234 · angular/angular-cli

Description: Command build Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was angularVersion = "18.2.5" nodeVersion = "20.18.0" Description After migrating to Angul...

Open Graph Description: Command build Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was angularVersion = "18.2.5" nodeVersion = "20.18...

X Description: Command build Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was angularVersion = "18.2.5" nodeVersio...

Opengraph URL: https://github.com/angular/angular-cli/issues/32234

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilation","articleBody":"### Command\n\nbuild\n\n### Is this a regression?\n\n- [x] Yes, this behavior used to work in the previous version\n\n### The previous version in which this bug was not present was\n\n angularVersion = \"18.2.5\"  nodeVersion = \"20.18.0\"    \n\n### Description\n\nAfter migrating to Angular CLI 20.3.6 and Node.js 24.0.0  When building an Angular library using ng build --configuration production library, the build process crashes sporadically with exit code -1073740940 (0xC0000374) - a Windows heap corruption error.\n\nThe crash occurs during partial compilation mode, specifically when building entry points. The error is intermittent/sporadic - the same build may succeed or fail randomly without any code changes\n\n\n\n### Minimal Reproduction\n\nI am currently working on production code, so I cannot share the full repository.\nHowever, I am able to suggest a minimal reproduction, as the issue appears to be sporadic and reproducible under certain conditions.\n\nThe Angular library build intermittently crashes during a production build, even when heap memory is increased.\nMinimal Reproduction Steps\n\n**Step 1**: Create a new Angular workspace with a library\nnpx @angular/cli@20.3.6 new repro-app --no-create-application\ncd repro-app\nnpx ng generate library my-lib\n\n**Step 2**: Add dependencies\nnpm install echarts@^5.5.1 d3@^7.9.0 --save\nnpm install @types/d3@^7.4.3 --save-dev\n\n**Step 3**: Generate multiple components (PowerShell)\n1..50 | ForEach-Object { npx ng generate component \"comp$_\" --project=my-lib }\n\n**Step 4**: Ensure public_api.ts exists\n\nCreate or verify the following file:\n\nprojects/my-lib/src/public_api.ts\n\n**Step 5**: Build the library repeatedly\nnpx ng build my-lib --configuration production\n\n\n➡️ Run the build 5 times.\n➡️ The crash occurs sporadically, not on every run.\n\n**Step 6**: (Optional) Build with increased heap memory\nnode --max_old_space_size=8192 ./node_modules/@angular/cli/bin/ng build my-lib --configuration production\n\n\nAdditional:\nThe project still uses the legacy library builder:\n\n\"builder\": \"@angular-devkit/build-angular:ng-packagr\"\nI have not migrated to standalone components (standalone: false is still in use).\n\n\n\n⚠️ Increasing heap memory does not consistently prevent the crash.\n\nExpected Behavior\n\nThe library should build successfully and consistently in production mode.\n\nRepeated builds should not result in random crashes.\n\nActual Behavior\n\nThe build intermittently fails with a crash.\n\nThe issue is non-deterministic and may succeed or fail across runs using the same code and environment.\n\nIncreasing Node.js heap size does not reliably resolve the problem.\n\n### Exception or Error\n\n```text\nError MSB3073: The command \"ng build --configuration production library\" exited with code -1073740940\n\n\nThe build crashes sporadically with exit code -1073740940 (0xC0000374) - Windows heap corruption error. The crash:\n\nOccurs randomly (same code may build successfully or fail)\nHappens during partial compilation mode\nCannot be fixed by increasing Node.js heap memory (--max-old-space-size=8192)\nPersists across Node.js versions 20.x, 22.x, and 24.x\n\n\n\nError Output\n\u003e ng build --configuration production library\n\nBuilding Angular Package\n\n------------------------------------------------------------------------------\nBuilding entry point '@my-lib/common-ui'\n------------------------------------------------------------------------------\n- Compiling with Angular sources in partial compilation mode.\n✔ Compiling with Angular sources in partial compilation mode.\n\nError MSB3073: The command \"ng build --configuration production library\" exited with code -1073740940\n```\n\n### Your Environment\n\n```text\nOS: Windows 10/11 (64-bit)\nNode.js: 24.0.0 (also tested with 22.x and 20.x)\nnpm: 11.3.0\nAngular CLI: 20.3.6\n@angular-devkit/build-angular: 20.3.6\nng-packagr: 20.3.2\nesbuild: 0.25.9 (transitive dependency)\nTypeScript: 5.8.3\n```\n\n### Anything else relevant?\n\nThings Attempted (Did Not Work)\n\n1. Increased Node.js heap memory to 8GB (--max-old-space-size=8192)\n2. Switched to Node.js 24 (as per Angular documentation)\n3. Switched to Node.js 22 LTS \n4. Deleted node_modules and performed clean reinstall\n5. Cleared .angular cache directory\n6. Disabled Angular CLI cache\n7. Disabled TypeScript declaration maps (\"declarationMap\": false)\n8. Disabled source maps (\"sourceMap\": false)\n9. Disabled incremental compilation (\"incremental\": false)","author":{"url":"https://github.com/cool-akash","@type":"Person","name":"cool-akash"},"datePublished":"2026-01-07T14:59:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/32234/angular-cli/issues/32234"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:f8537196-9cb4-ff67-dcba-1401e156a49a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8B98:121AD4:2715DB3:32F527D:69648800
html-safe-nonce131009844e632b395c8b90cc9898fc8c8a781847ff9ef274a9c93062975ccfed
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4Qjk4OjEyMUFENDoyNzE1REIzOjMyRjUyN0Q6Njk2NDg4MDAiLCJ2aXNpdG9yX2lkIjoiNzg4NTc1MTgwOTExODM0MTEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8f6608ae24e5de7da527b4f22efb790acea4161c18ceb5e7c2cfb18c99506000
hovercard-subject-tagissue:3789113812
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/32234/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d07d4ebf08680b67efe8243afae1df5dc84441390296d2668305688e71ff8b03/angular/angular-cli/issues/32234
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d07d4ebf08680b67efe8243afae1df5dc84441390296d2668305688e71ff8b03/angular/angular-cli/issues/32234
og:image:altCommand build Is this a regression? Yes, this behavior used to work in the previous version The previous version in which this bug was not present was angularVersion = "18.2.5" nodeVersion = "20.18...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecool-akash
hostnamegithub.com
expected-hostnamegithub.com
Nonebaa7d9900fdf7b27d604f36887af878d569cfbdcf97126832a5f4f0caf0c6ba5
turbo-cache-controlno-preview
go-importgithub.com/angular/angular-cli git https://github.com/angular/angular-cli.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id36891867
octolytics-dimension-repository_nwoangular/angular-cli
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id36891867
octolytics-dimension-repository_network_root_nwoangular/angular-cli
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release842eff1d11f899d02b6b3b98fa3ea4860e64b34e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/angular/angular-cli/issues/32234#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F32234
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular-cli%2Fissues%2F32234
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular-cli
Reloadhttps://github.com/angular/angular-cli/issues/32234
Reloadhttps://github.com/angular/angular-cli/issues/32234
Reloadhttps://github.com/angular/angular-cli/issues/32234
angular https://github.com/angular
angular-clihttps://github.com/angular/angular-cli
Notifications https://github.com/login?return_to=%2Fangular%2Fangular-cli
Fork 11.9k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Star 27k https://github.com/login?return_to=%2Fangular%2Fangular-cli
Code https://github.com/angular/angular-cli
Issues 265 https://github.com/angular/angular-cli/issues
Pull requests 21 https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/angular/angular-cli/security
Please reload this pagehttps://github.com/angular/angular-cli/issues/32234
Insights https://github.com/angular/angular-cli/pulse
Code https://github.com/angular/angular-cli
Issues https://github.com/angular/angular-cli/issues
Pull requests https://github.com/angular/angular-cli/pulls
Actions https://github.com/angular/angular-cli/actions
Security https://github.com/angular/angular-cli/security
Insights https://github.com/angular/angular-cli/pulse
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32234
New issuehttps://github.com/login?return_to=https://github.com/angular/angular-cli/issues/32234
ng build crashes with heap corruption (exit code -1073740940) on Node.js 24 during Angular library compilationhttps://github.com/angular/angular-cli/issues/32234#top
needs: more infoReporter must clarify the issuehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20more%20info%22
https://github.com/cool-akash
https://github.com/cool-akash
cool-akashhttps://github.com/cool-akash
on Jan 7, 2026https://github.com/angular/angular-cli/issues/32234#issue-3789113812
needs: more infoReporter must clarify the issuehttps://github.com/angular/angular-cli/issues?q=state%3Aopen%20label%3A%22needs%3A%20more%20info%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.