沪钢木子

关注

Angular:No component factory found for ChildComponent. Did you add it to @NgModule.entryComponents?

沪钢木子

关注

阅读 67

2023-04-18


在使用 ngx-bootstrap/modal 弹出模态框时报下面错误:

ERROR Error: No component factory found for ChildComponent. Did you add it to @NgModule.entryComponents?

解决办法就是在 module.ts 里的 @NgModule 里追加 entryComponents: [ChildComponent]

@NgModule({
  entryComponents: [ChildComponent]
})

 

相关推荐

精进的医生

<router-link> - did you register the component correctly? For recursive comp

精进的医生 88 0 0

爱喝酒的幸福人

did you register the component correctly? For recursive components, make sure to provide the

爱喝酒的幸福人 59 0 0

夜空一星

Unknown custom element: <el-divider> - did you register the component correctly? For recursive compo

夜空一星 36 0 0

萨摩斯加士奇

vue控制台报错Unknown custom element: <tempalte> - did you register the component

萨摩斯加士奇 68 0 0

Xin_So

Unknown custom element <el-image> - did you register the component correct解决方法

Xin_So 172 0 0

源码之路

Ubuntu中使用yum命令出现错误提示:Command ‘yum‘ not found, did you mean:

源码之路 40 0 0

技术只适用于干活

报错Unknown custom element <xxx> - did you register the component correctly的原因及解决办法

技术只适用于干活 84 0 0

精彩评论(0)

0 0 举报