Multiple components match node with tagname app-lobby

后端 未结 7 1116
刺人心
刺人心 2021-02-14 05:51

the code was running fine on angular version 8.3.4 but when i updated it to the latest version of angular ( 9 ) i got the following error

following is t

7条回答
  •  无人及你
    2021-02-14 06:18

    @VikasBhardwaj I had same problem in Angular 9 because I have created lobby page and lobby component. In this case, app-lobby is duplicated in pages and components.

    @Component({
      selector: 'app-feed',
    

    So I have changed page name as lobbies, so the problem is fixed.

提交回复
热议问题