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

Closed
1 task
mcalmus opened this issue Jan 25, 2025 · 5 comments · Fixed by #30401
Closed
1 task

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

mcalmus opened this issue Jan 25, 2025 · 5 comments · Fixed by #30401
Assignees
Labels
area: cdk/platform P2 The issue is important to a large percentage of users, with a workaround

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/material@19.0.3 and @angular/core@19.0.4

@joaorulff
Copy link

Same here. Any updates?

@se1ya
Copy link

se1ya commented Jan 27, 2025

facing the same problem

@dj-foreflight
Copy link

same issue

@crisbeto crisbeto self-assigned this Jan 27, 2025
@crisbeto crisbeto added P2 The issue is important to a large percentage of users, with a workaround area: cdk/platform and removed needs triage This issue needs to be triaged by the team labels Jan 28, 2025
crisbeto added a commit to crisbeto/material2 that referenced this issue Jan 28, 2025
…than 19.1

Fixes that we were importing a symbol only available in Angular 19.1, even though our peer dependencies allow 19.0.x.

Fixes angular#30388.
crisbeto added a commit that referenced this issue Jan 28, 2025
…than 19.1 (#30401)

Fixes that we were importing a symbol only available in Angular 19.1, even though our peer dependencies allow 19.0.x.

Fixes #30388.
crisbeto added a commit to crisbeto/material2 that referenced this issue Jan 28, 2025
…than 19.1 (angular#30401)

Fixes that we were importing a symbol only available in Angular 19.1, even though our peer dependencies allow 19.0.x.

Fixes angular#30388.
crisbeto added a commit that referenced this issue Jan 28, 2025
…than 19.1 (#30401) (#30407)

Fixes that we were importing a symbol only available in Angular 19.1, even though our peer dependencies allow 19.0.x.

Fixes #30388.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Feb 28, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: cdk/platform P2 The issue is important to a large percentage of users, with a workaround
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants