Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

feat: support current Angular CLI versions

Open
#325 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Run cf migrate wrangler.jsonc --no-install.
  2. Run npm install -D --save-exact [email protected] [email protected].
  3. Remove the generated dependency-installation TODO and migration guard after installing the dependencies.
  4. 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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from cloudflare/cf

All issues in cloudflare/cf

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.