Renovate fails to update Angular due to incompatible zone.js version #32606
Replies: 4 comments 13 replies
|
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
|
I have also encountered this problem. I guess there are currently two solutions:
This seems to be a duplicate of #25282. |
|
@rhuitl could you install the app into https://github.com/rhuitl/renovatebot-angular to reproduce the problem fully? |
|
I've created a workaround for this: It results in this: renovate-reproductions/32606#4 Seems to solve the zone.js problem although looks like the CLI packages should be grouped in too? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reproducer
https://github.com/rhuitl/renovatebot-angular
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GitHub
Please tell us more about your question or problem
At the moment, Renovate fails to submit a working PR that updates Angular. I'm fairly confident it fails for everybody at this time.
You'll see a PR that contains updates to
@angular/*from e.g. version18.2.0to18.2.12zone.jsfrom~0.14.10to~0.15.0The problem is that NPM reports "ERESOLVE unable to resolve dependency tree" because zone.js is a peer dependency of Angular, and needs to be LOWER than version 0.15:
I was wondering if there is a recommended way to deal with this problem. For example, can Renovate update peer dependencies like
zone.jsto the latest version that is compatible? Or are there any workarounds?To reproduce this, you can use this
package.jsonwhere I pinned the Angular version to 18.2.0:{ "name": "my-app", "version": "0.0.0", "scripts": { "ng": "ng", "start": "ng serve", "build": "ng build", "watch": "ng build --watch --configuration development", "test": "ng test" }, "private": true, "dependencies": { "@angular/animations": "=18.2.0", "@angular/common": "=18.2.0", "@angular/compiler": "=18.2.0", "@angular/core": "=18.2.0", "@angular/forms": "=18.2.0", "@angular/platform-browser": "=18.2.0", "@angular/platform-browser-dynamic": "=18.2.0", "@angular/router": "=18.2.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.14.10" }, "devDependencies": { "@angular-devkit/build-angular": "=18.2.0", "@angular/cli": "=18.2.0", "@angular/compiler-cli": "=18.2.0", "@types/jasmine": "~5.1.0", "jasmine-core": "~5.2.0", "karma": "~6.4.0", "karma-chrome-launcher": "~3.2.0", "karma-coverage": "~2.2.0", "karma-jasmine": "~5.1.0", "karma-jasmine-html-reporter": "~2.1.0", "typescript": "~5.5.2" } }Logs (if relevant)
No response
All reactions