Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task
mcalmus opened this issue Jan 25, 2025 · 2 comments
Open
1 task

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

mcalmus opened this issue Jan 25, 2025 · 2 comments
Labels
needs triage This issue needs to be triaged by the team

Comments

@mcalmus
Copy link
Contributor

mcalmus commented Jan 25, 2025

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
@mcalmus mcalmus added the needs triage This issue needs to be triaged by the team label Jan 25, 2025
@devnull-hub-lab
Copy link

Same here.
But I'm using @angular/[email protected] and @angular/[email protected]

@joaorulff
Copy link

Same here. Any updates?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage This issue needs to be triaged by the team
Projects
None yet
Development

No branches or pull requests

3 participants