If $f:X \to [0,1]$ is an onto continuous map and $\{f^{-1} (y)\}$ is compact for every $y \in [0,1]$, then is X necessarily compact?
Now continuous image of a compact set is compact. Again $X$ is the uncountable union of compact sets but to get any conclusion?