cloudflare / cloudflare/workers-sdk

Auto build angular error

Open
#12,915 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.5k
Forks
1.5k
Avg merge
3d 8h
Merged PRs (30d)
186

Description

### What versions & operating system are you using?

auto wrangler build on my cloudflare page

### Please provide a link to a minimal reproduction

https://github.com/ganatan/angular-starter

### Describe the Bug

just building my private angular signals 21 repo
this fails on the cloudflare dashboard build it self.

ive attached the logs

2026-03-15T21:05:38.296Z ✘ [ERROR] Cannot read properties of undefined (reading 'architect')

thanks

### Please provide any relevant error logs

2026-03-15T21:04:41.254Z Initializing build environment...
2026-03-15T21:04:42.934Z Success: Finished initializing build environment
2026-03-15T21:04:43.761Z Cloning repository...
2026-03-15T21:04:46.190Z Detected the following tools from environment: npm@11.4.2, nodejs@22.16.0
2026-03-15T21:04:46.191Z Installing project dependencies: npm clean-install --progress=false
2026-03-15T21:04:41.254Z Initializing build environment...
2026-03-15T21:04:42.934Z Success: Finished initializing build environment
2026-03-15T21:04:43.761Z Cloning repository...
2026-03-15T21:04:46.190Z Detected the following tools from environment: npm@11.4.2, nodejs@22.16.0
2026-03-15T21:04:46.191Z Installing project dependencies: npm clean-install --progress=false
2026-03-15T21:05:05.913Z
2026-03-15T21:05:05.917Z added 458 packages, and audited 459 packages in 19s
2026-03-15T21:05:05.918Z
2026-03-15T21:05:05.918Z 91 packages are looking for funding
2026-03-15T21:05:05.918Z run `npm fund` for details
2026-03-15T21:05:06.114Z
2026-03-15T21:05:06.114Z 22 vulnerabilities (7 moderate, 15 high)
2026-03-15T21:05:06.114Z
2026-03-15T21:05:06.114Z To address all issues, run:
2026-03-15T21:05:06.114Z npm audit fix
2026-03-15T21:05:06.114Z
2026-03-15T21:05:06.114Z Run `npm audit` for details.
2026-03-15T21:05:06.400Z Executing user build command: npm run build
2026-03-15T21:05:06.670Z
2026-03-15T21:05:06.670Z > tova@0.0.0 prebuild
2026-03-15T21:05:06.670Z > node -e "const fs = require('fs'); const file = 'src/environments/secrets.ts'; if (!fs.existsSync(file)) fs.writeFileSync(file, 'export const secrets = { youtubeApiKey: \'mock-key\' };');"
2026-03-15T21:05:06.671Z
2026-03-15T21:05:06.710Z
2026-03-15T21:05:06.710Z > tova@0.0.0 build
2026-03-15T21:05:06.710Z > ng build
2026-03-15T21:05:06.710Z
2026-03-15T21:05:07.110Z Workspace extension with invalid name (defaultProject) found.
2026-03-15T21:05:07.547Z ❯ Building...
2026-03-15T21:05:18.110Z ✔ Building...
2026-03-15T21:05:18.111Z Initial chunk files | Names | Raw size | Estimated transfer size
2026-03-15T21:05:18.111Z chunk-L3USDBEH.js | - | 443.70 kB | 111.24 kB
2026-03-15T21:05:18.111Z chunk-ZDFL2VW4.js | - | 35.26 kB | 7.50 kB
2026-03-15T21:05:18.112Z polyfills-5CFQRCPP.js | polyfills | 34.59 kB | 11.33 kB
2026-03-15T21:05:18.112Z styles-R3LUN7ZY.css | styles | 26.36 kB | 3.56 kB
2026-03-15T21:05:18.112Z main-YQRXIIBN.js | main | 16.53 kB | 4.59 kB
2026-03-15T21:05:18.112Z chunk-JQVXPDUA.js | - | 12.51 kB | 3.98 kB
2026-03-15T21:05:18.112Z
2026-03-15T21:05:18.112Z | Initial total | 568.94 kB | 142.21 kB
2026-03-15T21:05:18.112Z
2026-03-15T21:05:18.112Z Lazy chunk files | Names | Raw size | Estimated transfer size
2026-03-15T21:05:18.112Z chunk-WEMELIXK.js | creator | 76.92 kB | 20.07 kB
2026-03-15T21:05:18.112Z chunk-BFNT4TBZ.js | home | 29.66 kB | 7.46 kB
2026-03-15T21:05:18.112Z chunk-AC7OBRJ4.js | editor | 4.79 kB | 1.70 kB
2026-03-15T21:05:18.112Z chunk-XZETE2EI.js | player | 3.69 kB | 1.56 kB
2026-03-15T21:05:18.112Z chunk-DJAYYQEA.js | - | 741 bytes | 741 bytes
2026-03-15T21:05:18.118Z
2026-03-15T21:05:18.119Z Application bundle generation complete. [10.561 seconds] - 2026-03-15T21:05:18.108Z
2026-03-15T21:05:18.119Z
2026-03-15T21:05:18.119Z Output location: /opt/buildhome/repo/dist/tova
2026-03-15T21:05:18.119Z
2026-03-15T21:05:18.120Z ▲ [WARNING] bundle initial exceeded maximum budget. Budget 500.00 kB was not met by 68.94 kB with a total of 568.94 kB.
2026-03-15T21:05:18.120Z
2026-03-15T21:05:18.120Z
2026-03-15T21:05:18.120Z ▲ [WARNING] src/app/pages/home/home.css exceeded maximum budget. Budget 4.00 kB was not met by 1.30 kB with a total of 5.30 kB.
2026-03-15T21:05:18.120Z
2026-03-15T21:05:18.120Z
2026-03-15T21:05:18.120Z ▲ [WARNING] src/app/app.css exceeded maximum budget. Budget 4.00 kB was not met by 465 bytes with a total of 4.46 kB.
2026-03-15T21:05:18.121Z
2026-03-15T21:05:18.121Z
2026-03-15T21:05:18.123Z ▲ [WARNING] src/app/pages/creator/creator.css exceeded maximum budget. Budget 4.00 kB was not met by 477 bytes with a total of 4.48 kB.
2026-03-15T21:05:18.124Z
2026-03-15T21:05:18.124Z
2026-03-15T21:05:18.124Z ▲ [WARNING] Module 'spatial-navigation-js' used by 'src/app/services/spatial-nav.service.ts' is not ESM
2026-03-15T21:05:18.124Z
2026-03-15T21:05:18.124Z CommonJS or AMD dependencies can cause optimization bailouts.
2026-03-15T21:05:18.124Z For more information see: https://angular.dev/tools/cli/build#configuring-commonjs-dependencies
2026-03-15T21:05:18.124Z
2026-03-15T21:05:18.124Z
2026-03-15T21:05:18.125Z ▲ [WARNING] Module '@supabase/postgrest-js' used by 'node_modules/@supabase/supabase-js/dist/main/index.js' is not ESM
2026-03-15T21:05:18.125Z
2026-03-15T21:05:18.126Z CommonJS or AMD dependencies can cause optimization bailouts.
2026-03-15T21:05:18.126Z For more information see: https://angular.dev/tools/cli/build#configuring-commonjs-dependencies
2026-03-15T21:05:18.126Z
2026-03-15T21:05:18.126Z
2026-03-15T21:05:18.338Z Success: Build command completed
2026-03-15T21:05:18.711Z Executing user deploy command: npx wrangler deploy
2026-03-15T21:05:19.865Z npm warn exec The following package was not found and will be installed: wrangler@4.73.0
2026-03-15T21:05:31.942Z
2026-03-15T21:05:31.942Z ⛅️ wrangler 4.73.0
2026-03-15T21:05:31.942Z ───────────────────
2026-03-15T21:05:32.064Z
2026-03-15T21:05:32.064Z Detected Project Settings:
2026-03-15T21:05:32.064Z - Worker Name: tova-web
2026-03-15T21:05:32.064Z - Framework: Angular
2026-03-15T21:05:32.064Z - Build Command: npm run build
2026-03-15T21:05:32.065Z - Output Directory: dist/
2026-03-15T21:05:32.065Z
2026-03-15T21:05:32.069Z ? Do you want to modify these settings?
2026-03-15T21:05:32.070Z 🤖 Using fallback value in non-interactive context: no
2026-03-15T21:05:32.070Z
2026-03-15T21:05:32.070Z 📦 Install packages:
2026-03-15T21:05:32.070Z - wrangler (devDependency)
2026-03-15T21:05:32.070Z
2026-03-15T21:05:32.070Z 📝 Update package.json scripts:
2026-03-15T21:05:32.070Z - "deploy": "npm run build && wrangler deploy"
2026-03-15T21:05:32.070Z - "preview": "npm run build && wrangler dev"
2026-03-15T21:05:32.070Z - "cf-typegen": "wrangler types"
2026-03-15T21:05:32.071Z
2026-03-15T21:05:32.073Z 📄 Create wrangler.jsonc:
2026-03-15T21:05:32.073Z {
2026-03-15T21:05:32.074Z "$schema": "node_modules/wrangler/config-schema.json",
2026-03-15T21:05:32.074Z "name": "tova-web",
2026-03-15T21:05:32.075Z "compatibility_date": "2025-09-27",
2026-03-15T21:05:32.075Z "observability": {
2026-03-15T21:05:32.075Z "enabled": true
2026-03-15T21:05:32.075Z },
2026-03-15T21:05:32.075Z "main": "./dist/server/server.mjs",
2026-03-15T21:05:32.075Z "assets": {
2026-03-15T21:05:32.075Z "binding": "ASSETS",
2026-03-15T21:05:32.075Z "directory": "dist/browser"
2026-03-15T21:05:32.076Z },
2026-03-15T21:05:32.076Z "compatibility_flags": [
2026-03-15T21:05:32.076Z "nodejs_compat"
2026-03-15T21:05:32.076Z ]
2026-03-15T21:05:32.076Z }
2026-03-15T21:05:32.077Z
2026-03-15T21:05:32.086Z 🛠️ Configuring project for Angular
2026-03-15T21:05:32.086Z
2026-03-15T21:05:32.086Z ? Proceed with setup?
2026-03-15T21:05:32.086Z 🤖 Using fallback value in non-interactive context: yes
2026-03-15T21:05:38.224Z ├ Updating angular.json config
2026-03-15T21:05:38.233Z
2026-03-15T21:05:38.233Z Cloudflare collects anonymous telemetry about your usage of Wrangler. Learn more at https://github.com/cloudflare/workers-sdk/tree/main/packages/wrangler/telemetry.md
2026-03-15T21:05:38.236Z
2026-03-15T21:05:38.296Z ✘ [ERROR] Cannot read properties of undefined (reading 'architect')
2026-03-15T21:05:38.297Z
2026-03-15T21:05:38.297Z
2026-03-15T21:05:38.317Z If you think this is a bug then please create an issue at https://github.com/cloudflare/workers-sdk/issues/new/choose
2026-03-15T21:05:38.318Z ? Would you like to report this error to Cloudflare? Wrangler's output and the error details will be shared with the Wrangler team to help us diagnose and fix the issue.
2026-03-15T21:05:38.319Z 🤖 Using fallback value in non-interactive context: no
2026-03-15T21:05:38.342Z 🪵 Logs were written to "/opt/buildhome/.config/.wrangler/logs/wrangler-2026-03-15_21-05-31_111.log"
2026-03-15T21:05:38.421Z Failed: error occurred while running deploy command

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.