Let $$X = \{(z, w) \in \mathbb{C}^2 : z^2 + w^2 = 1\}.$$ Is there a holomorphic function $f : X \to \mathbb{C}$ which do not extend to a holomorphic function on all of $\mathbb{C}^2$?
I tried to find an example of the form $f(z, w) = \frac{1}{g(z, w)}$, where $g(z, w)$ is a holomorphic function which has zeros, but none that lie in $X$. But I couldn't find any.
Claim. Every holomorphic function on $X = \{\, (z,w) : z^2 + w^2 = 1 \,\} \subset \mathbb C^2$ extends to a holomorphic function on $\mathbb C^2$.
Proof. Introducing the new coordinates $$s = z + iw, \quad t = z - iw$$ we see that $$X = \{\, s \cdot t = 1 \,\}.$$ The projection $\mathbb C^2 \to \mathbb C, (s,t) \mapsto s$ induces an isomorphism $$X \stackrel{\cong}{\rightarrow} \mathbb C \setminus \{0\}.$$ By this isomorphism we can identify holomorphic functions on $X$ with holomorphic functions on $\mathbb C \setminus \{0\}$ in one coordinate $s$. We can already construct functions on $\mathbb C \setminus \{0\}$ that do not extend to $\mathbb C$ but still extend from $X$ to $\mathbb C^2$! For example $$f(s) = \frac{1}{s} = t. \tag{1}$$ Now we use this idea to prove our claim.
Let $f(s)$ be any holomorphic function on $\mathbb C \setminus \{0\}$. Since $f$ has (at most) an isolated singularity in $0$, we can write $f$ as a Laurent series $$f(s) = \sum_{k=-\infty}^\infty a_k s^k.$$ Since the only singularities of $f$ are in $0$ and in $\infty$, the two power series $$g(t) = \sum_{k=1}^\infty a_{-k} t^k, \quad h(s) = \sum_{k=0}^\infty a_k s^k$$ have infinite radius of convergence, so that $$f(s,t) = g(t) + h(s)$$ is an extension of $f$ to $\mathbb C^2$.