Is there any incidents happen before she said 'i don't like mommy/daddy'? Maybe you can teach her to express her feelings, example: i'm angry because mommy not allow me to watch tv/ i'm unhappy because i cannot follow daddy go to work.
Then explain to her the reason (eg cannot watch tv because it's bathtime).
By doing this, she'll learn to identify her feelings and also knows that you acknowledge her feelings by giving her reasons.
Most of all, always remember she is very young and does not purposely hurt your feeling. It is just a social development milestone that she is practising with your guidance.
Read more
Nurturer of 2 kiddos