Contact your baby's healthcare provider if your child is not gaining weight or has other signs of illness. Sometimes vomiting in infants and newborns is a sign of a more serious problem.