Skip to content

Angular CLI bug. There is no directive with "exportAs" set to ... #7377

@liliom55

Description

@liliom55

Bug:
Unhandled Promise rejection: Template parse errors:
There is no directive with "exportAs" set to "mdMenu" ("
more_vert

<md-menu [ERROR ->]#menu="mdMenu">
<button md-menu-item (click)="callAssistance()">
Help</"): ng:///CatalogModule/MenuGlobalComponent.html@3:9 ; Zone: ; Task: Promise.then ; Value: Error: ....

I updated angular and material.

package.json

"dependencies": {
"@angular/animations": "^4.0.3",
"@angular/cdk": "github:angular/cdk-builds",
"@angular/common": "4.0.x",
"@angular/compiler": "4.0.x",
"@angular/compiler-cli": "4.0.x",
"@angular/core": "4.0.x",
"@angular/flex-layout": "^2.0.0-beta.8",
"@angular/forms": "4.0.x",
"@angular/http": "4.0.x",
"@angular/material": "github:angular/material2-builds",
"@angular/platform-browser": "4.0.x",
"@angular/platform-browser-dynamic": "4.0.x",
"@angular/platform-server": "4.0.x",
"@angular/router": "4.0.x",
"@material/textfield": "^0.2.3",
"bootstrap": "^3.3.7",
"core-js": "^2.4.1",
"hammerjs": "^2.0.8",
"material-components-web": "^0.7.0",
"ng2-translate": "^5.0.0",
"ngx-bootstrap": "^1.6.6",
"rxjs": "^5.1.0",
"web-animations-js": "^2.2.5",
"zone.js": "^0.8.9"
},
"devDependencies": {
"@angular/cli": "^1.4.3",
"@types/jasmine": "2.5.38",
"@types/node": "~6.0.60",
"codelyzer": "~2.0.0",
"jasmine-core": "~2.5.2",
"jasmine-spec-reporter": "~3.2.0",
"karma": "~1.4.1",
"karma-chrome-launcher": "~2.0.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^0.2.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.0",
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.0"
}

but still get this error

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions