Sajeetharan
Sajeetharan

Reputation: 222722

export 'MdToolbarModule' was not found in '@angular/material'

I am using "@angular/material": "^2.0.0-beta.11" in one of my pet project, and the package.json has the reference as follows,

"@angular/material": "^2.0.0-beta.11"

I have imported the necessary modules as follows,

import { MdToolbarModule, MdIconModule, MdGridListModule, MdButtonModule } from '@angular/material';

@NgModule({
 declarations: [        
 ],
 imports: [
 MdToolbarModule,
 MdIconModule,
 MdGridListModule,
 MdButtonModule
 ],
 providers: [],
 bootstrap: [AppComponent]
 })
export class AppModule { }

but it throws an error export 'MdToolbarModule' was not found in '@angular/material'

Upvotes: 1

Views: 2358

Answers (1)

not_python
not_python

Reputation: 902

It is not MdToolbarModule anymore.
Now it is called

MatToolbarModule

So the import should be

import { MatToolbarModule} from '@angular/material';

Upvotes: 5

Related Questions