Angular Material 14 - common-behaviors folder not found after updating

Viewed 46

After updating to Angular 14, the following code snippet is not working anymore.

Looks like common-behaviors folder is not being found.

Is there any other solution than creating myself the HasElementRef interface?

import { HasElementRef } from '@angular/material/core/common-behaviors/color'

export class MyClass implements HasElementRef {
  constructor(public _elementRef: ElementRef) {}
}
1 Answers
Related