Skip to content

bug(COMPATIBILITY): Material 19.1.0 not compatible with Angular 19.0.x #30388

Closed
@mcalmus

Description

@mcalmus

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

Metadata

Metadata

Assignees

Labels

P2The issue is important to a large percentage of users, with a workaroundarea: cdk/platform

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions