Components: Unexpected directive 'MdToolbar' imported by the module 'AppModule'

Created on 1 May 2017  路  3Comments  路  Source: angular/components

MdToolbar raising error with angular4.

My code:
import { MdToolbar} from "@angular/material";

imports:[MdToolbar]

Error: Unexpected directive 'MdToolbar' imported by the module 'AppModule'

Most helpful comment

Missing MdToolbarModule in whichever NgModule your component is declared within.

All 3 comments

Looks like you want to import the MdToolbarModule?

Missing MdToolbarModule in whichever NgModule your component is declared within.

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

RoxKilly picture RoxKilly  路  3Comments

kara picture kara  路  3Comments

theunreal picture theunreal  路  3Comments

constantinlucian picture constantinlucian  路  3Comments

shlomiassaf picture shlomiassaf  路  3Comments