\listoffigures does not display the caption of the figures

I am currently writing my thesis and need to create a list of figures (and tables, but have not reached that point yet). I have successfully created the actual list, but it does not display the caption or label of the figures. Additionally, there are no spaces in the listings. It looks like this (see attached picture):

And I would like it to be displayed in this format:

Figure number, the actual caption that I wrote OR the label I chose, Page number. Ex: Fig 2.2, System Boundaries LCA, 18

The code used for the list of figures:

 % List of figures (add to table of contents)
\cleardoublepage
\listoffigures


This is the code I have used to insert my figures: (in case I have made an error here and that is why it does not work.)

\begin{figure} [H]
\centering
\includegraphics[width=\textwidth] {figure/Images/System boundariesLCA.JPG}
\caption{Life cycle stages for a building according to the standard SS-EN 15978 \citeyear{StandardLCA2011} }
\label{fig:System Boundaries LCA}
\end{figure}


• Additionally are you by any change ignoring compilation errors? for example in overleaf? Additionally you really shouldn't be using [H] for figures unless you like holes in your PDFs. – daleif Mar 5 at 14:56