feat: support current Angular CLI versions
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- angular, typescript
- Domain
- build-system, cli
Research direction
The failing step is the build stage of cf deploy, which logs "Delegating to npx ng build --prod"; start by finding where the Angular build command is chosen in the deploy path and check how cf migrate detects Angular projects. Reproduce with an Angular 22 project that has a Worker entrypoint and static assets, then run cf deploy --dry-run. Done when the build runs ng build --configuration production and the deploy output still works for Workers.
Written by the indexing model from the issue text.
Description
Summary of the issue
I'd like to use cf with Angular 22, but the Angular build command still uses ng build --prod. Angular CLI 22 no longer accepts that flag.
I migrated an existing Angular app with a Worker and static assets using cf migrate. Running cf deploy --dry-run afterward fails with Error: Unknown argument: prod.
My existing build script uses ng build --configuration production, but cf deploy selects its own command.
Expected behaviour
Support current Angular CLI versions, using ng build --configuration production and handling the resulting output for Workers deployment.
Version of cf used
1.0.0-beta.17
System information and package versions
- macOS: 26.6.2 (arm64)
- Node.js: 22.23.2
- npm: 10.9.8
- cf: 1.0.0-beta.17
- Wrangler: 4.151.0
- Angular CLI: 22.2.2
Reproduction (optional)
In an existing Angular 22 project with a Worker entrypoint and static assets configured in wrangler.jsonc:
- Run
cf migrate wrangler.jsonc --no-install. - Run
npm install -D --save-exact [email protected] [email protected]. - Remove the generated dependency-installation TODO and migration guard after installing the dependencies.
- Run
cf deploy --dry-run.
Relevant error logs (optional)
├ Build
│ Delegating to npx ng build --prod
Error: Unknown argument: prod
- Dominant language
- TypeScript
- Stars
- 853
- Forks
- 42
- Avg merge
- 17h 59m
- Merged PRs (30d)
- 145
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudflare/cf
-
`cf complete zsh >> .zshrc` fails on vanilla zshMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cloudflare/cf#340 ·
Maintainers usually reply within 1 day
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/cf#262 ·
Maintainers usually reply within 1 day
-
`cf dev` rejects `--port` and `--host` for Vite projects, including the `cf init` templatePossibly taken @jamesopstad claimed this 4 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
cloudflare/cf#223 · 2 assignees ·
Maintainers usually reply within 1 day
-
upstream
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
cloudflare/cf#179 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 Half a day Newbie friendliness 45/100
cloudflare/cf#326 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
anomalyco/opencode#56380 · 1 comment ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
BUG | `MCP 服务器` | 全局层行的停用/启用与删除报 404 server row not found,编辑保存会在 profile 层复制出重复行Possibly taken @w6242652 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Chocobozzz/PeerTube#7832 ·
Maintainers usually reply within 3 days
-
Pay to use?Open
Difficulty 1/5 Under an hour Newbie friendliness 66/100
darkreader/darkreader#16108 · 1 comment ·
Maintainers usually reply within 2 days