Skip to content

chore(angular-example): upgrade to Angular 22#8671

Draft
Copilot wants to merge 3 commits into
masterfrom
copilot/update-example-angular
Draft

chore(angular-example): upgrade to Angular 22#8671
Copilot wants to merge 3 commits into
masterfrom
copilot/update-example-angular

Conversation

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Bumps the examples/angular project from Angular 21.2.x to the latest Angular 22.

Package updates

  • @angular/* core packages: 21.2.x22.0.2
  • @angular/pwa, @angular/ssr: → 22.0.3
  • @angular-devkit/build-angular, @angular/build, @angular/cli: → 22.0.3
  • typescript: 5.9.36.0.3 — Angular 22 requires >=6.0 <6.1

Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>
@pubkey

pubkey commented Jun 22, 2026

Copy link
Copy Markdown
Owner

@copilot fails:

npm http fetch GET 200 https://registry.npmjs.org/@types%2fglob 3ms (cache stale)
npm http fetch GET 200 https://registry.npmjs.org/aggregate-error 16ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fminimatch 2ms (cache stale)
npm http fetch GET 200 https://registry.npmjs.org/clean-stack 21ms (cache miss)
npm http fetch GET 200 https://registry.npmjs.org/sprintf-js 2ms (cache stale)
npm http fetch GET 200 https://registry.npmjs.org/@types%2fmime 2ms (cache stale)
npm verbose type version
npm verbose stack @angular/compiler: No matching version found for @angular/compiler@22.0.2.
npm verbose stack at module.exports (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:210:23)
npm verbose stack at RegistryFetcher.manifest (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/pacote/lib/registry.js:130:54)
npm verbose stack at async #fetchManifest (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1227:20)
npm verbose stack at async #nodeFromEdge (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:1061:19)
npm verbose stack at async #buildDepStep (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:917:11)
npm verbose stack at async Arborist.buildIdealTree (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:170:7)
npm verbose stack at async Promise.all (index 1)
npm verbose stack at async Arborist.reify (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/reify.js:111:5)
npm verbose stack at async Install.exec (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/lib/commands/install.js:146:5)
npm verbose stack at async Npm.exec (/opt/hostedtoolcache/node/24.15.0/x64/lib/node_modules/npm/lib/npm.js:193:9)
npm error code ETARGET
npm error notarget No matching version found for @angular/compiler@22.0.2.
npm error notarget In most cases you or one of your dependencies are requesting a package version that doesn't exist.
npm verbose cwd /home/runner/work/rxdb/rxdb/examples/angular
npm verbose os Linux 6.8.0-1059-azure
npm verbose node v24.15.0
npm verbose npm v11.12.1
npm verbose exit 1
npm verbose code 1
npm error A complete log of this run can be found in: /home/runner/.npm/_logs/2026-06-22T09_36_03_098Z-debug-0.log
Error: Process completed with exit code 1.

…packument data

Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

@copilot fails:

npm http fetch GET 200 https://registry.npmjs.org/@types%2fglob 3ms (cache stale)
...

The failure was caused by the GitHub Actions npm cache restoring a stale packument (package metadata) for @angular/compiler from before 22.0.2 was published. When npm tried to resolve version 22.0.2 against the cached metadata, it couldn't find it.

Fixed in commit fix(angular-example): clear npm cache in reinstall.sh by adding npm cache clean --force to reinstall.sh before the npm i call, ensuring stale packument data never prevents resolution of newly-published versions.

@pubkey

pubkey commented Jun 22, 2026

Copy link
Copy Markdown
Owner

fails @copilot

npm verbose cwd /home/runner/work/rxdb/rxdb/examples/angular
npm verbose os Linux 6.8.0-1059-azure
npm verbose node v24.15.0
npm verbose npm v11.12.1
npm verbose exit 0
npm info ok

added 1924 packages, and audited 1925 packages in 2m

279 packages are looking for funding
run npm fund for details

48 vulnerabilities (4 low, 27 moderate, 15 high, 2 critical)

To address issues that do not require attention, run:
npm audit fix

To address all issues (including breaking changes), run:
npm audit fix --force

Run npm audit for details.
npm verbose cwd /home/runner/work/rxdb/rxdb/examples/angular
npm verbose os Linux 6.8.0-1059-azure
npm verbose node v24.15.0
npm verbose npm v11.12.1
npm verbose exit 0
npm info ok

angular@0.0.0 build
npm run build:frontend && npm run build:copy && echo "BUILD SUCCESS"

angular@0.0.0 build:frontend
node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --configuration production --aot

❯ Building...
✔ Building...
Application bundle generation failed. [7.819 seconds] - 2026-06-22T11:26:21.091Z

✘ [ERROR] TS5101: Option 'baseUrl' is deprecated and will stop functioning in TypeScript 7.0. Specify compilerOption '"ignoreDeprecations": "6.0"' to silence this error.
Visit https://aka.ms/ts6 for migration information. [plugin angular-compiler]

…rl warning

Co-authored-by: pubkey <8926560+pubkey@users.noreply.github.com>

Copilot AI commented Jun 22, 2026

Copy link
Copy Markdown
Contributor Author

fails @copilot

npm verbose cwd /home/runner/work/rxdb/rxdb/examples/angular
...

TypeScript 6.0 made baseUrl a deprecated option that errors unless suppressed. Fixed in the latest commit by adding "ignoreDeprecations": "6.0" to compilerOptions in tsconfig.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants