Components: error TS2339: Property 'extraClasses' does not exist on type 'MatSnackBarConfig<any>'

Created on 4 May 2018  路  3Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug ? I guess

What is the expected behavior?

No error by Angular-CLI (TS).
it's seems the attribute 'extraClasses' is not available or does not exist anymore ?

What is the current behavior?

error TS2339: Property 'extraClasses' does not exist on type 'MatSnackBarConfig'

What are the steps to reproduce?

Try to add extraclasses attribute to 'MatSnackBarConfig' object

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

Angular 6.0
Material 6.0
Flex 6.0.0-beta.15
OS: Windows 7 64 bits
TS: 2.7.2
Browser: Chrome
Package-Manager: Yarn 1.6
Node: 8.9.0
Ng-Update: YES

Most helpful comment

As of 6.0.0 extraClasses was renamed to panelClass as noted in the 6.0.0-beta.5 list of breaking changes:

snack-bar: extraClasses which was deprecated in 5.0.0 has been removed. Use panelClass instead.

All 3 comments

As of 6.0.0 extraClasses was renamed to panelClass as noted in the 6.0.0-beta.5 list of breaking changes:

snack-bar: extraClasses which was deprecated in 5.0.0 has been removed. Use panelClass instead.

Oh sorry my bad, anyway thank you

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

vanor89 picture vanor89  路  3Comments

shlomiassaf picture shlomiassaf  路  3Comments

RoxKilly picture RoxKilly  路  3Comments

michaelb-01 picture michaelb-01  路  3Comments

LoganDupont picture LoganDupont  路  3Comments