I am relatively new to LaTeX (using Overleaf compiler). I am using someone's code to build an acronym section and I get errors (while his document shows none). I have done my best comparing and trouble shooting but I don't find anything. Here is a example of the code:
\documentclass{report}
\usepackage[printonlyused]{acronym}
\usepackage{hyperref}
\title{Test}
\author{}
\date{}
\begin{document}
\section{Introduction to hyper ref errors}
\begin{acronym}[Acronyms]
\acro{eii}[EII]{electron impact ionization}
\end{acronym}
The \acs{eii} is a strong laser field effect.
\end{document}
Running this code gives "Hyper reference `acro:eii' on page 1 undefined on input line 14." But it does what it is supposed to do.
Thank you for your input :)