Starbright and the Dream Eater by Joy Cowley

The town of Claircomb is afflicted an illness which makes people suffer terrible nightmares before becoming unconscious. Starbright, an adventurous young girl, discovers it is not an illness, but a malignant psychic alien entity that feeds on people’s dreams. She also discovers that she has been named in a prophecy to be the one whom can…