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
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.