Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

feat: support current Angular CLI versions

Aperta
#325 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
angular, typescript
Ambito
build-system, cli

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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
Lingua principale
TypeScript
Stelle
916
Fork
53
Merge medio
18h 37m
PR unite (30g)
197

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudflare/cf

Tutte le issue di cloudflare/cf

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.