Current Behavior
When building an Angular library by running nx build , the build fails, if the installed version of ng-packagr is >20.3.0:
This is probably connected so some cache optimizations that happened in the next release:
Expected Behavior
@nx/angular should not fail with newer ng-packagr versions
GitHub Repo
No response
Steps to Reproduce
- Create an Angular Monorepo (application + library)
- Ensure ng-packagr version is > 20.3.0
- Run nx build
Nx Report
Report complete - copy this into the issue template
Node : 24.11.1
OS : darwin-arm64
Native Target : aarch64-macos
npm : 11.6.2
nx (global) : 22.1.0
nx : 22.1.0
@nx/js : 22.1.0
@nx/jest : 22.1.0
@nx/eslint : 22.1.0
@nx/workspace : 22.1.0
@nx/angular : 22.1.0
@nx/devkit : 22.1.0
@nx/eslint-plugin : 22.1.0
@nx/module-federation : 22.1.0
@nx/rspack : 22.1.0
@nx/web : 22.1.0
@nx/webpack : 22.1.0
typescript : 5.9.3
---------------------------------------
Registered Plugins:
@nx/eslint/plugin
---------------------------------------
Community plugins:
@jsverse/transloco : 8.2.0
@ngrx/signals : 20.1.0
@ngx-formly/schematics : 7.0.1
@progress/kendo-angular-buttons : 21.1.0
@progress/kendo-angular-conversational-ui : 21.1.0
@progress/kendo-angular-dateinputs : 21.1.0
@progress/kendo-angular-dialog : 21.1.0
@progress/kendo-angular-dropdowns : 21.1.0
@progress/kendo-angular-excel-export : 21.1.0
@progress/kendo-angular-filter : 21.1.0
@progress/kendo-angular-grid : 21.1.0
@progress/kendo-angular-icons : 21.1.0
@progress/kendo-angular-indicators : 21.1.0
@progress/kendo-angular-inputs : 21.1.0
@progress/kendo-angular-intl : 21.1.0
@progress/kendo-angular-l10n : 21.1.0
@progress/kendo-angular-label : 21.1.0
@progress/kendo-angular-layout : 21.1.0
@progress/kendo-angular-menu : 21.1.0
@progress/kendo-angular-navigation : 21.1.0
@progress/kendo-angular-notification : 21.1.0
@progress/kendo-angular-pager : 21.1.0
@progress/kendo-angular-pdf-export : 21.1.0
@progress/kendo-angular-popup : 21.1.0
@progress/kendo-angular-progressbar : 21.1.0
@progress/kendo-angular-toolbar : 21.1.0
@progress/kendo-angular-tooltip : 21.1.0
@progress/kendo-angular-treeview : 21.1.0
@progress/kendo-angular-upload : 21.1.0
@progress/kendo-angular-utils : 21.1.0
angular-eslint : 20.6.0
ngxtension : 4.2.1
nx-stylelint : 18.0.2
---------------------------------------
Cache Usage: 1.85 MB / 185.82 GB
Failure Logs
TypeError: Cannot read properties of undefined (reading 'outputCache')
at /Users/<user>/dev/microfrontend/node_modules/@nx/angular/src/executors/ng-packagr-lite/ng-packagr-adjustments/ng-package/entry-point/write-bundles.transform.js:40:63
Package Manager Version
No response
Operating System
Additional Information
No response
Current Behavior
When building an Angular library by running nx build , the build fails, if the installed version of ng-packagr is >20.3.0:
This is probably connected so some cache optimizations that happened in the next release:
Expected Behavior
@nx/angular should not fail with newer ng-packagr versions
GitHub Repo
No response
Steps to Reproduce
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
No response