遇到如下的错误消息:
Failed to compile.
src/app/ngrxdemo/searchbookcomponents/search-input/search-input.component.html:4:3 - error NG8001: ‘nz-input-group’ is not a known element:
If ‘nz-input-group’ is an Angular component, then verify that it is part of this module.
If ‘nz-input-group’ is a Web Component then add ‘CUSTOM_ELEMENTS_SCHEMA’ to the ‘@NgModule.schemas’ of this component to suppress this message.
4
添加如下依赖到package.json:
“ng-zorro-antd”: “^7.5.1”,
npm install:
发现一系列warning,原因是因为ng-zorro-antd和Angular的版本不一致: