angular - 如果 'student-entries' 是一个 Angular 组件,那么验证它是这个模块的一部分
问题描述
我正在使用以下内容创建角度表格:
ng g @angular/material:material-table --name=studentEntries
它是在相应的地方导入的,但我收到以下错误:
1.If 'student-entries' is an Angular component, then verify that it is part
of this module.
2. If 'student-entries' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA'
to the '@NgModule.schemas' of this component to suppress this message.
app.module.ts 中的代码类似于:
@NgModule({
imports: []
declarations: [StudentEntries],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {}
解决方案
推荐阅读
- javascript - 递归更改对象嵌套属性名称
- javascript - 重置按钮以重置 rgb 范围滑块
- gdb - 了解 gdb 回溯
- reactjs - 如何将图像下载到“reactjs src 文件夹”
- java - 序列化和反序列化二叉树
- c# - 调用安全的 ASP.NET Core 5 Web API 会导致 HTTP 406 - Not Acceptable 错误
- python - Discord bot 命令随机停止与 python 一起工作?
- docker - 在 URL (ip:port) 上全局访问 docker 应用程序
- c# - 按钮事件将创建一个文件夹以及子文件夹
- java - 从其他受密码保护的存储库中导入 Maven 依赖项