Description
Is this a regression?
- Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
19.2.3
Description
Upgrading to 19.2.4 from 19.2.3 introduces compilation errors. On my local project the compilation issue is related to CdkFixedSizeVirtualScroll
used by CDK overlay, but testing on stack blitz it appears to be an issue with many different directives.
Error message from my local project:
✘ [ERROR] TS-993004: Unable to import directive CdkFixedSizeVirtualScroll.
The symbol is not exported from ./node_modules/@angular/cdk/overlay/index.d.ts
(module '@angular/cdk/overlay'). [plugin angular-compiler]
In a fresh stack blitz recreation w/ CDK 19.2.4 I am seeing the following:
✘ [ERROR] TS-993004: Unable to import directive CdkScrollable.
The symbol is not exported from /home/projects/components-issue-starter-mzddipx4/node_modules/@angular/cdk/drag-drop/index.d.ts (module '@angular/cdk/drag-drop'). [plugin angular-compiler]
I suspect the issue was introduced via this commit/PR:
- 6b8e6fc#diff-760144f1e1623bcd5add28c9403080f693452fcc7764be2ca01314c4d5f83dbb
- refactor: use relative imports within npm packages #30647
Reproduction
StackBlitz link: https://stackblitz.com/edit/components-issue-starter-mzddipx4?file=package.json
Steps to reproduce:
- Simply open the example. The default project w/ latest 19.2.x dependencies fails to compile
Expected Behavior
No regressions should be present in a bugfix release.
Actual Behavior
A regression preventing application compilation has been introduced.
Environment
Angular CLI: 19.2.4
Node: 22.14.0
Package Manager: npm 10.9.2
OS: linux x64
Angular: 19.2.3
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, platform-server
... router
Package Version
@angular-devkit/architect 0.1902.4
@angular-devkit/build-angular 19.2.4
@angular-devkit/core 19.2.4
@angular-devkit/schematics 19.2.4
@angular/cdk 19.2.4
@angular/cli 19.2.4
@angular/material 19.2.4
@angular/ssr 19.2.4
@angular/youtube-player 19.2.4
@schematics/angular 19.2.4
rxjs 7.8.2
typescript 5.8.2