Issue
I am getting below error :
Error in /turbo_modules/@angular/[email protected]/bundles/material-table.umd.js (32:19)
Class extends value undefined is not a constructor or null
I checked many blogs that says it due to "circularly importing classes". But I am not able to figure out which class I am importing circularly.
Also this is happening only in v11 of Angular.
Below is the stackbliz reproduction :
https://stackblitz.com/edit/angular-iustv6?file=src/app/app.module.ts
Solution
You’re using older @angular/cdk
library, that seems to be an issue. Please update @angular/cdk
, then it should work.
From
"@angular/cdk": "^7.0.0",
To
"@angular/cdk": "^11.2.5",