I'm trying to get hyperlinks working for tcolorboxes. But when I click on the link in the pdf documents, I'm getting an error on console Failed to lookup label error. I tried both phantom and label with tcolorbox. None of them worked. The minimum working code is here.

\documentclass[12pt]{book}
\usepackage{tcolorbox}
\usepackage{hyperref}
\usepackage{lipsum}

\begin{document}

\begin{tcolorbox}[title=Lipsum, phantom={\phantomsection{\label{lipsum}}}]
\lipsum[1]
\end{tcolorbox}

\clearpage
\newpage


Use \phantomsection\hypertarget{lipsum}, since a \label does not have a direct relationship with \hyperlink. The latter expects a \hypertarget.