Skip to content

Errors when creating a new angular project #24010

@franjorub

Description

@franjorub

What versions & operating system are you using?

[email protected]

➜ test-angular git:(main) ✗ node -v
v22.16.0
➜ test-angular git:(main) ✗ npm -v
10.9.2

Please provide a link to a minimal reproduction

No response

Describe the Bug

following the docs from scratch https://developers.cloudflare.com/workers/framework-guides/web-apps/more-web-frameworks/angular/ to create a new angular project I have found the following problems :

The docs says that after

npm create cloudflare@latest -- my-angular-app --framework=angular

you have to run

npm run dev

but the dev command is not available

➜ test-angular git:(main) npm run dev
npm error Missing script: "dev"

also running the app with ng serve fails when you change a file (this problem is not present when using the regular @angular-cli

⠋ Changes detected. Rebuilding...
node:internal/event_target:1101
process.nextTick(() => { throw err; });
^

TypeError: Cannot read properties of undefined (reading 'false')
at globalCallback (/Users/franciscorubial/WebstormProjects/test-angular/.angular/vite-root/test-angular/node_modules/zone.js/fesm2015/zone.js:1166:61)
at MessagePort.globalZoneAwareCallback (/Users/franciscorubial/WebstormProjects/test-angular/.angular/vite-root/test-angular/node_modules/zone.js/fesm2015/zone.js:1205:16)
at [nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)
at MessagePort. (node:internal/per_context/messageport:23:28)
at MessagePort.callbackTrampoline (node:internal/async_hooks:130:17)

Please provide any relevant error logs

No response

Metadata

Metadata

Labels

bugSomething isn't workingproduct:workersRelated to Workers product

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions