'nz-alert' is not a known element:
- If 'nz-alert' is an Angular component, then verify that it is part of this module.
- If 'nz-alert' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message
I just opened an Angular project using VSCode, and after loading the dependencies, the project runs successfully without any errors. However, I am getting error prompts in the editor. How should I handle this situation?
Some of the online solutions I found did not work after trying them. I know it's not a code issue; it's likely a configuration problem with VSCode regarding Angular.
Please make sure to import
nzAlertModulewherever your component is declared, either in its declared module imports or if its standalone, then inside the component decorator imports array.documentation nzAlert