workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

Errors when creating a new angular project

Open franjorub opened this issue 6 months ago • 1 comments

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

franjorub avatar Jun 05 '25 18:06 franjorub