Components: Material 5.1.1: Generic type 'TemplatePortal<C>' requires 1 type argument

Created on 31 Jan 2018  路  3Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

ng serve/ng test should run successfully

What is the current behavior?

ng serve/ng test fails with following error:

ERROR in node_modules/@angular/material/expansion/typings/expansion-panel.d.ts(43,14): error TS2314: Generic type 'TemplatePortal<C>' requires 1 type argument(s).
node_modules/@angular/material/tabs/typings/tab-body.d.ts(62,15): error TS2314: Generic type 'TemplatePortal<C>' requires 1 type argument(s).
node_modules/@angular/material/tabs/typings/tab.d.ts(28,23): error TS2314: Generic type 'TemplatePortal<C>' requires 1 type argument(s).

What are the steps to reproduce?

Use @angular/material 5.1.1 with @angular "^5.2.1".

What is the use-case or motivation for changing an existing behavior?

Fix builds

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

"@angular/material": "5.1.0" - works fine, issue occurs with version 5.1.1
"@angular/animations": "^5.2.1", "@angular/cdk": "5.0.4", "@angular/cli": "^1.6.6", "@angular/common": "^5.2.1", "@angular/compiler": "^5.2.1", "@angular/compiler-cli": "^5.2.1", "@angular/core": "^5.2.1", "@angular/flex-layout": "2.0.0-beta.10-4905443", "@angular/forms": "^5.2.1", "@angular/http": "^5.2.1", "@angular/material": "~5.1.0", "@angular/platform-browser": "^5.2.1", "@angular/platform-browser-dynamic": "^5.2.1", "@angular/platform-server": "^5.2.1", "@angular/router": "^5.2.1",

Is there anything else we should know?

Most helpful comment

@kuzbida 'npm install @angular/[email protected]' solved this problem for me

All 3 comments

@kuzbida 'npm install @angular/[email protected]' solved this problem for me

Closing as this is the result of having mismatched versions of @angular/cdk and @angular/material. The versions must be in line with each other.

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xtianus79 picture xtianus79  路  3Comments

constantinlucian picture constantinlucian  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

alanpurple picture alanpurple  路  3Comments

vitaly-t picture vitaly-t  路  3Comments