Angular Linker fails for 'PlatformLocation' with Yarn Berry PnP, requiring JIT compiler #30385
Labels
angular/build:application
area: @angular/build
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
yarn 2+
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When building an Angular application using Yarn Berry with Plug'n'Play (PnP) enabled, I encounter an error indicating that the PlatformLocation injectable needs to be compiled using the JIT compiler because
@angular/compiler
is not available.I am looking for a solution that allows us to continue using Yarn PnP without resorting to including
@angular/compiler
in the production build or disabling PnP.Steps to reproduce the issue
"packageManager": "[email protected]"
inpackage.json
Please provide a link to a minimal reproduction of the bug
https://github.com/laxsuryavanshi/ybng
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
NodeJS 22.11.0
Yarn 4.9.1
The text was updated successfully, but these errors were encountered: