Title: Node.js v22.2 causes ng build hangs up · Issue #27674 · angular/angular-cli · GitHub
Open Graph Title: Node.js v22.2 causes ng build hangs up · Issue #27674 · angular/angular-cli
X Title: Node.js v22.2 causes ng build hangs up · Issue #27674 · 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 No response Description When the Node.js version is v22.2.0 (released on 2024-05-15), ...
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 No response Description When the Node.js versi...
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 No response Description When the Node.js versi...
Opengraph URL: https://github.com/angular/angular-cli/issues/27674
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Node.js v22.2 causes ng build hangs up","articleBody":"### Command\r\n\r\nbuild\r\n\r\n### Is this a regression?\r\n\r\n- [ ] Yes, this behavior used to work in the previous version\r\n\r\n### The previous version in which this bug was not present was\r\n\r\n_No response_\r\n\r\n### Description\r\n\r\nWhen the Node.js version is v22.2.0 (released on 2024-05-15), the `ng build` command hangs up. Node.js v22.1.0 doesn't.\r\nAngular CLI is not supporting that version of Node.js officially, but on Firebase App Hosting, the build environment is using Node.js v22.2 today by default. So it is an easy situation for developers to get stumped.\r\n\r\nMy workaround is to set `engines.node` field in `package.json` as `\"20\"`. App Hosting builder can determine the Node.js version to install. \r\n\r\n\r\n### Minimal Reproduction\r\n\r\n- set Node.js version to v22.2.0\r\n- `ng new` on `@angular/cli@latest` (v17.3.7)\r\n- `ng build`\r\n- print `Building...` and never finished.\r\n\r\n### Exception or Error\r\n\r\n_No response_\r\n\r\n### Your Environment\r\n\r\n```text\r\nAngular CLI: 17.3.7\r\nNode: 22.2.0 (Unsupported)\r\nPackage Manager: pnpm 8.15.6\r\nOS: darwin arm64\r\n\r\nAngular: 17.3.9\r\n... animations, common, compiler, compiler-cli, core, forms\r\n... platform-browser, platform-browser-dynamic, platform-server\r\n... router\r\n\r\nPackage Version\r\n---------------------------------------------------------\r\n@angular-devkit/architect 0.1703.7\r\n@angular-devkit/build-angular 17.3.7\r\n@angular-devkit/core 17.3.7\r\n@angular-devkit/schematics 17.3.7\r\n@angular/cli 17.3.7\r\n@angular/ssr 17.3.7\r\n@schematics/angular 17.3.7\r\nrxjs 7.8.1\r\ntypescript 5.4.5\r\nzone.js 0.14.6\r\n \r\nWarning: The current version of Node (22.2.0) is not supported by Angular.\r\n```\r\n\r\n\r\n### Anything else relevant?\r\n\r\n_No response_","author":{"url":"https://github.com/lacolaco","@type":"Person","name":"lacolaco"},"datePublished":"2024-05-22T03:45:03.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/27674/angular-cli/issues/27674"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:f140fd2a-35ca-422c-ddfa-fccd1944063b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F16:3B16A6:4EEAE49:6F5ECB1:6A4F95D4 |
| html-safe-nonce | f5ea8cf81a3b73e499793a00e983f5f458943f89f1d3691679e805c14cd1aa11 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjE2OjNCMTZBNjo0RUVBRTQ5OjZGNUVDQjE6NkE0Rjk1RDQiLCJ2aXNpdG9yX2lkIjoiMTMxNTEwOTAzNjM3OTU3NTc2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f0616aafc647f99cc36e20380498460ef371eeca518fbfc9d8244a8412abe275 |
| hovercard-subject-tag | issue:2309507084 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/27674/issue_layout |
| twitter:image | https://opengraph.githubassets.com/44ea5e953439d890819075dc947819483ebc28a73b4acfd8a813f2195c94e113/angular/angular-cli/issues/27674 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/44ea5e953439d890819075dc947819483ebc28a73b4acfd8a813f2195c94e113/angular/angular-cli/issues/27674 |
| og:image:alt | 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 No response Description When the Node.js versi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lacolaco |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width