analog: [tRPC] CI breaks everytime there's a new version of Angular (even minor)

Please provide the environment you discovered this bug in.

“@analogjs/content”: “1.9.2”, “@analogjs/router”: “1.9.2”, “@analogjs/trpc”: “0.2.46”, “@angular/animations”: “18.2.12”, “@angular/cdk”: “18.2.12”, “@angular/common”: “18.2.12”, “@angular/compiler”: “18.2.12”, “@angular/core”: “18.2.12”, “@angular/forms”: “18.2.12”, “@angular/material”: “18.2.12”, “@angular/platform-browser”: “18.2.12”, “@angular/platform-browser-dynamic”: “18.2.12”, “@angular/platform-server”: “18.2.12”, “@angular/router”: “18.2.12”,

Which area/package is the issue in?

trpc

Description

I feel like something is wrong with the peerDependencies in @analogjs/trpc because everytime there’s a new version of Angular, my CI breaks and force me to update to the latest Angular version.

I tried to force the angular version in my package.json and it didn’t fix it.

Maybe am I doing something wrong?

Please provide the exception or error you saw

Build failed with status: FAILURE and message: npm error code ERESOLVE
  npm error ERESOLVE unable to resolve dependency tree
  npm error
  npm error While resolving: @optee/source-prod@0.0.0
  npm error Found: @angular/core@18.2.12
  npm error node_modules/@angular/core
  npm error   @angular/core@"18.2.12" from the root project
  npm error   peer @angular/core@"^16.0.0 || ^17.0.0 || ^18.0.0" from @analogjs/trpc@0.2.46
  npm error   node_modules/@analogjs/trpc
  npm error     @analogjs/trpc@"0.2.46" from the root project
  npm error
  npm error Could not resolve dependency:
  npm error peer @angular/core@"18.2.13" from @angular/common@18.2.13
  npm error node_modules/@angular/common
  npm error   peer @angular/common@"^16.0.0 || ^17.0.0 || ^18.0.0" from @analogjs/trpc@0.2.46
  npm error   node_modules/@analogjs/trpc
  npm error     @analogjs/trpc@"0.2.46" from the root project
  npm error
  npm error Fix the upstream dependency conflict, or retry
  npm error this command with --force or --legacy-peer-deps
  npm error to accept an incorrect (and potentially broken) dependency resolution.
  npm error
  npm error
  npm error For a full report see:
  npm error /www-data-home/.npm/_logs/2024-11-27T08_03_15_658Z-eresolve-report.txt
  npm error A complete log of this run can be found in: /www-data-home/.npm/_logs/2024-11-27T08_03_15_658Z-debug-0.log. For more details see the logs at https://console.cloud.google.com/cloud-build/builds;region=europe-west1/d2d039f4-bee9-4868-a376-7350b0e3d437?project=22449048409.

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Totally forgot to get back to you. It seems to have fixed the issue. Thanks Brandon 🙏