[pnpm] Angular cli cannot build angular 19 project in pnpm monorepo with both angular version 18 and 19 #29504
Closed
1 task done
Labels
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Command
build, test
Is this a regression?
The previous version in which this bug was not present was
18
Description
Before angular 19 it was possible to have multiple versions of angular each one using it's version of angular-cli in a typical pnpm monorepo.
This was really convenient for migration project-by-project.
It's not working anymore, with a v18 and v19 mix. As any build/test command on angular project will issue the following error.
Minimal Reproduction
I got a minimal reproducible example with a really simple pnpm monorepo initiated from scratch. (https://github.com/DrGrognon/angular-pnpm-monorepo-v18-and-19)
Can be redone easily:
pnpm init
add angular projects with:
then create a
pnpm-workspace.yaml
file with projects:Then reproduce with:
pnpm install cd ng-19 pnpm run build
Exception or Error
Your Environment
Anything else relevant?
I tested the exact same configuration with 17/18 and 17/19 and everything was working fine.
It look like a strange 18/19 interaction 🤔
This issue is a continuation of angular/angular#58832 (closed for inactivity)
I encounter the exact same problem so i open another issue .
Please let me know if there is another process in this situation.
kudos to angular team, you do awesome work 💓
The text was updated successfully, but these errors were encountered: