angular / angular-cli

CLI tool for Angular
https://cli.angular.dev
MIT License
26.77k stars 11.98k forks source link

Unmet peer dependency issue with angular-cli and @listr2/prompt-adapter-inquirer #28870

Closed arobinson closed 3 hours ago

arobinson commented 4 hours ago

Command

other

Is this a regression?

The previous version in which this bug was not present was

No response

Description

├─┬ @angular/cli 19.0.0-rc.2
│ └─┬ @listr2/prompt-adapter-inquirer 2.0.17
│   └── ✕ unmet peer @inquirer/prompts@">= 3 < 7": found 7.1.0

RC2 is using 2.0.17 of @listr2/prompt-adapter-inquirer but using an incompatible version of @inquirer/prompts

Minimal Reproduction

pnpm i -g @angular/cli@next
 WARN  1 deprecated subdependencies found: puppeteer@13.7.0
Packages: +109 -61
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------
Progress: resolved 500, reused 500, downloaded 0, added 109, done

/Users/andrew/.local/share/pnpm/global/5:
- @angular/cli 18.0.0
+ @angular/cli 19.0.0-rc.2

 WARN  Issues with peer dependencies found
.
└─┬ @angular/cli 19.0.0-rc.2
  └─┬ @listr2/prompt-adapter-inquirer 2.0.17
    └── ✕ unmet peer @inquirer/prompts@">= 3 < 7": found 7.1.0

Exception or Error

WARN  Issues with peer dependencies found

Your Environment

_                      _                 ____ _     ___
    / \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|
   / △ \ | '_ \ / _` | | | | |/ _` | '__|   | |   | |    | |
  / ___ \| | | | (_| | |_| | | (_| | |      | |___| |___ | |
 /_/   \_\_| |_|\__, |\__,_|_|\__,_|_|       \____|_____|___|
                |___/

Angular CLI: 19.0.0-rc.2
Node: 22.11.0
Package Manager: npm 10.9.0
OS: darwin arm64

Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.1900.0-rc.2
@angular-devkit/core         19.0.0-rc.2
@angular-devkit/schematics   19.0.0-rc.2
@schematics/angular          19.0.0-rc.2

Anything else relevant?

No response

jkrems commented 3 hours ago

It looks like this was fixed in listr2 by officially expanding the peer dep range without other changes but it's not released yet? https://github.com/listr2/listr2/commit/e68e009ce26c6e646a93bb060029734ca295fee6

EDIT: Reported upstream as https://github.com/listr2/listr2/issues/730.