irossimoline / angular4-material-table

Angular 4 table based on @angular/cdk table structure, to allow row insertion, edition, validation and deletion.
MIT License
55 stars 25 forks source link

ERROR TypeError: Class constructor DataSource cannot be invoked without 'new' #36

Open danyssespindola opened 5 years ago

danyssespindola commented 5 years ago

Hi, I installed the last version of this component and I implemented the example from link https://stackblitz.com/edit/angular-tj9f6y but dosen't work. I get this error: image

Any ideias why? My project uses Angular 8.1.0 and Angular Material 8.0.0.

Thanks

moogmodular commented 5 years ago

The error went away when i set the target back to "es5" in tsconfig.json after the update to 8.1

nolafs commented 4 years ago

Any fixes planned for it?

harleyz commented 4 years ago

I experienced this today as well, the work around did work for me, but I am also wondering if this can be fixed.

asukkoor commented 3 years ago

After upgrading to angular/cdk 10, see the same issue, is there any fix? Already tried everything including ES6 and ES2015.

hyouinKyouma commented 3 years ago

@ danyssespindola faceing the same issue for same example