Bug: Generic type 'CdkRowDef<T>' requires 1 type argument(s)
See original GitHub issueBug:
After updating from 2.0.0-beta.11 to 2.0.0-beta.12, when running my project I get the following errors:
node_modules/@angular/material/table/typings/row.d.ts (20,39): Generic type 'CdkRowDef<T>' requires 1 type argument(s)
node_modules/@angular/material/table/typings/row.d.ts (23,40): Generic type 'CdkRowDef<T>' requires 1 type argument(s)
If I change both lines from:
export declare class MdRowDef extends _MdCdkRowDef { }
export declare class MatRowDef extends _MdCdkRowDef { }
To:
export declare class MdRowDef extends _MdCdkRowDef<any> { }
export declare class MatRowDef extends _MdCdkRowDef<any> { }
I can run my project again with no issues. I don’t use the table module but was wondering if this is the correct way to solve the issue.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular 4.4.3, Material 2.0.0-beta.12, macOs Sierra, TypeScript 2.5.2, no browser affected.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:5
- Comments:6 (1 by maintainers)
Top GitHub Comments
Check you have pinned the same version of
cdk
andmaterial
inpackage.json
:If you have e.g.
^2.0.0-beta.11
for cdk, you will run into problems now thatbeta.12
is available.A mismatch in angular cdk and angular material gave me this error. It worked for me when i got both the versions same at 11 ( @angular/material 2.0.0.-beta.11 and @angular/cdk 2.0.0-beta.11.) When i tried with version 12, build breaks.