Let $V$ be a connected smooth complex projective curve of negative Euler characteristic. Can there exist a connected smooth complex algebraic curve $U$ such that there is a non-constant holomorphic map $U\to V$ but no non-constant holomorphic map from the compactification of $U$ to $V$? EDIT: the question considers the smooth compactification of $U$.