components
components copied to clipboard
'mat-drawer-container' is not a known element not works even though i installed all necessary @Angular/material library
Is this a regression?
- [X] Yes, this behavior used to work in the previous version
The previous version in which this bug was not present was
No response
Description
Error: src/app/app.component.html:1:1 - error NG8001: 'mat-drawer-container' is not a known element:
- If 'mat-drawer-container' is an Angular component, then verify that it is part of this module.
- If 'mat-drawer-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Reproduction
Error: src/app/app.component.html:1:1 - error NG8001: 'mat-drawer-container' is not a known element:
- If 'mat-drawer-container' is an Angular component, then verify that it is part of this module.
- If 'mat-drawer-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Expected Behavior
Error: src/app/app.component.html:1:1 - error NG8001: 'mat-drawer-container' is not a known element:
- If 'mat-drawer-container' is an Angular component, then verify that it is part of this module.
- If 'mat-drawer-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Actual Behavior
Error: src/app/app.component.html:1:1 - error NG8001: 'mat-drawer-container' is not a known element:
- If 'mat-drawer-container' is an Angular component, then verify that it is part of this module.
- If 'mat-drawer-container' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.
Environment
- Angular:
- CDK/Material:
- Browser(s):
- Operating System (e.g. Windows, macOS, Ubuntu):
HI @ksabada, may you please complete the Environment part of your message?
It looks like the MatSidenavModule isn't imported in the correct place.
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.