That fixed the issue by just replacing
\usepackage{makeidx}
with \usepackage{imakeidx}
in my packages.tex file and then recompiling (twice) main.tex
.\usepackage{makeidx}
with \usepackage{imakeidx}
in my packages.tex file and then recompiling (twice) main.tex
.