getting 'md-content' is not a known element: MdSidenavLayout@0:165 when using latest builds
I just updated to the latest builds and I'm getting this error when trying to load my project. I've tried it on 7-4 and 7-9, the same thing occurs.
Here's the full error:
zone.js:484 Unhandled Promise rejection: Template parse errors: 'md-content' is not a known element:
- If 'md-content' is an Angular component, then verify that it is part of this module.
- If 'md-content' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schema' of this component to suppress this message. ("class.md-sidenav-shown]="_isShowingBackdrop()">
You should do exactly what is said in error message: import CUSTOM_ELEMENTS_SCHEMA in the main module (I assume that you use material elements all over your app) and add schema: [CUSTOM_ELEMENTS_SCHEMA] in ngModule metadata. According to Angular official documentation CUSTOM_ELEMENTS_SCHEMA "defines a schema that will allow any property on elements with a - in their name, which is the common rule for custom elements".
@mateuszwitkowski that doesn't make any sense, you should only have to use that when using stuff like polymer. Any directives defined in angular shouldn't need custom element schema.
Just checked alpha 7-10 and it works fine now. Closing.
I am having this problem with 8-1.
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.