Multiple components match node with tagname app-lobby

后端 未结 7 1137
刺人心
刺人心 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:42

    What was wrong in my case when I encountered this error:

    I had another DI error (NullInjectorError). @eugen's comment on the question helped me.

    Tip: See if you have a preceding error in developer console before this "Multiple components match ..." error. Usually such errors are reported only by JIT during runtime (when in dev mode), so you'll only spot them in the browser's developer console.


    PS: Don't provide the DatePipe again in your own module as it's already provided by angular's CommonModule. So check if you are missing the CommonModule import in your module.

    0 讨论(0)
提交回复
热议问题