PNPM recursive breaks ng build #16219
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
Bug report
Command (mark with an
x
)Description
The issue is that ng build fails with error:
An error occurred during the build: Error: Cannot find module '@angular/core/package.json'
if the repo is standard .NET Core Angular project with recursive pnpm workspace. So I have
and actual Angular directory:
I can make ng build work with pnpm if I don't use recursive or workspace.
🔬 Minimal Reproduction
I made a sample project for this problem, https://github.com/fehrm/angular_pnpm_sample
The steps I took to make it is
🔥 Exception or Error
🌍 Your Environment
PNPM: 4.30
Anything else relevant?
ng config -g cli.packageManager pnpm
or npm doesn't really matter. Same with local configuration.The text was updated successfully, but these errors were encountered: