Closed
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
No response
Description
Material 19.1.0 has @angular/core 19.0 marked as a peer dependency, but if you use Angular 19.0.x with Angular 19.1.x, it fails to compile:
ERROR TS2305: Module '"@angular/core"' has not exported member 'ListenerOptions'. node_modules/@angular/cdk/platform/index.d.ts:2:9: 2 | import { ListenerOptions } from '@angular/core';
@angular/core: 19.0.6
Material 19.1.0
Reproduction
https://stackblitz.com/edit/components-issue-starter-zubzowwp?file=package.json
Expected Behavior
Project should compile
Actual Behavior
Project fails to compile with error:
ERROR TS2305: Module '"@angular/core"' has not exported member 'ListenerOptions'. node_modules/@angular/cdk/platform/index.d.ts:2:9: 2 | import { ListenerOptions } from '@angular/core';
Environment
- Angular: 19.0.6
- CDK/Material: 19.1.0