Title: @ngtools/webpack expects yarn or npm, but not pnpm · Issue #22632 · angular/angular-cli · GitHub
Open Graph Title: @ngtools/webpack expects yarn or npm, but not pnpm · Issue #22632 · angular/angular-cli
X Title: @ngtools/webpack expects yarn or npm, but not pnpm · Issue #22632 · angular/angular-cli
Description: Hi! @ngtools/webpack performs a ngcc run check to determine if an initial execution is required. It looks for yarn.lock or package-lock.json to run this check. But our project uses pnpm, which has pnpm-lock.yaml. And @ngtools/webpack thi...
Open Graph Description: Hi! @ngtools/webpack performs a ngcc run check to determine if an initial execution is required. It looks for yarn.lock or package-lock.json to run this check. But our project uses pnpm, which has ...
X Description: Hi! @ngtools/webpack performs a ngcc run check to determine if an initial execution is required. It looks for yarn.lock or package-lock.json to run this check. But our project uses pnpm, which has ...
Opengraph URL: https://github.com/angular/angular-cli/issues/22632
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"@ngtools/webpack expects yarn or npm, but not pnpm","articleBody":"Hi!\r\n\r\n`@ngtools/webpack` performs a ngcc run check to determine if an initial execution is required. It looks for `yarn.lock` or `package-lock.json` to run this check. But our project uses [pnpm](https://pnpm.io/), which has `pnpm-lock.yaml`. And `@ngtools/webpack` thinks it is first time build and runs 'ngcc'.\r\n\r\nWe are using version `12.2.14`, but I see this code still [there](https://github.com/angular/angular-cli/blob/master/packages/ngtools/webpack/src/ngcc_processor.ts): \r\n\r\n```js\r\n try {\r\n let lockData;\r\n let lockFile = 'yarn.lock';\r\n try {\r\n lockData = readFileSync(path.join(projectBasePath, lockFile));\r\n } catch {\r\n lockFile = 'package-lock.json';\r\n lockData = readFileSync(path.join(projectBasePath, lockFile));\r\n }\r\n\r\n let ngccConfigData;\r\n try {\r\n ngccConfigData = readFileSync(path.join(projectBasePath, 'ngcc.config.js'));\r\n } catch {\r\n ngccConfigData = '';\r\n }\r\n```","author":{"url":"https://github.com/Usaga","@type":"Person","name":"Usaga"},"datePublished":"2022-02-02T09:58:09.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/22632/angular-cli/issues/22632"}
| 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:3d6c3dfa-6b4b-2f70-7222-4db0bb9e0c07 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D4F4:13D162:8997B5:C24FF6:6A5F9277 |
| html-safe-nonce | bfe648232a8d1ed86163aa8573df0b237d499679a848f84395b6ea26b39ea5f5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENEY0OjEzRDE2Mjo4OTk3QjU6QzI0RkY2OjZBNUY5Mjc3IiwidmlzaXRvcl9pZCI6IjMxNzMzODQ5NjY5NDU4NzA0NTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | f07b553575d02f206dcc9470581673f20f5d5971fe3b285ac88daf3d07db210e |
| hovercard-subject-tag | issue:1121719574 |
| 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/22632/issue_layout |
| twitter:image | https://opengraph.githubassets.com/35c889c97617ef9cfc90981069e518e4a2e01066887e974b916e83ae4a41706b/angular/angular-cli/issues/22632 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/35c889c97617ef9cfc90981069e518e4a2e01066887e974b916e83ae4a41706b/angular/angular-cli/issues/22632 |
| og:image:alt | Hi! @ngtools/webpack performs a ngcc run check to determine if an initial execution is required. It looks for yarn.lock or package-lock.json to run this check. But our project uses pnpm, which has ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Usaga |
| hostname | github.com |
| expected-hostname | github.com |
| None | 419b66b5f218029570caa18c30987e7dbabe4f5a6767918b33a504d02739c9c7 |
| 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 | de5b18aa36dbc0b61e03aeb111e84e90fde499b8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width