components icon indicating copy to clipboard operation
components copied to clipboard

Error in MatMenuModule

Open fad250 opened this issue 9 years ago • 3 comments

I updated my menu code from md to mat to accommodate the new name changes. It gave me the following error:

image

I updated my npm package and also included @ViewChild(MatMenuTrigger) trigger: MatMenuTrigger, but still gives the same error.

fad250 avatar Oct 11 '17 19:10 fad250

You probably are not importing MatMenuModule into your NgModule

willshowell avatar Oct 11 '17 19:10 willshowell

I did import it into the NgModule. I found my package.json a bit odd, I updated it again and that fixed the bug. I think it could be a dependency problem on my end.

fad250 avatar Oct 11 '17 20:10 fad250

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.