src/main/webapp/app/entities/equipment/list/equipment.component.html:34:5 - error NG8001: 'nz-table' is not a known element: 1. If 'nz-table' is an Angular component, then verify that it is part of this module. 2. If 'nz-table' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. 34 <nz-table #table [nzData]="tableData" nzBordered [nzScroll]="{ x: '12000px', y: '800px' }" [nzPageSize]="20"> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ src/main/webapp/app/entities/equipment/list/equipment.component.ts:15:16 15 templateUrl: './equipment.component.html', ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Error occurs in the template of component EquipmentComponent.
时间: 2023-07-09 12:55:52 浏览: 88
Mattermost服务器的Webapp:https://github.com/mattermost/mattermost-server-Golang开发
这个错误是因为在你的Angular应用程序中,'nz-table'不是一个已知的元素。可能是因为你没有正确导入NzTableModule或者它没有被正确注册在你的模块中。你可以在你的组件所在的模块中导入和注册NzTableModule,或者在你的app.module.ts文件中导入和注册NzTableModule,以确保该组件可以使用NzTable组件。
阅读全文