# Reference issue: In-text references appearing as bold question marks in LaTeX (but not Overleaf)?

hope you are well!

I usually use "Overleaf" but recently I decided to switch to the offline version - LaTex. And, I am encountering this issue with references appearing as bold question marks "????". Do you know how to solve this? I've been reading and trying different things from the LaTeX forum but haven't been able to solve it. Thank you

\documentclass[12pt]{article}

\usepackage{mathptmx}
\usepackage{times} % these two packages "times" and "mathptmx" are for "times new roman" font, if you dont want these font, then delete these 2 packages

\usepackage{apacite} %for citations in APA style

\usepackage{etoolbox} %for bibliography

\usepackage{graphicx,url}

\usepackage{amsmath}

\usepackage[utf8]{inputenc}

\usepackage{placeins}

\usepackage{hyperref}

\usepackage{setspace}

\usepackage{csquotes}

\usepackage{natbib}

\typeout{}
\bibliographystyle{apalike}
\bibliography{bibfile}

\title{Bibliography management: \texttt{natbib} package}

\usepackage{listings}

\usepackage{color}

\usepackage[affil-it]{authblk}

\usepackage{soul}

\usepackage{booktabs} %For Tables

\usepackage{float} %For Tables

\usepackage{graphicx} %For Tables

\usepackage{caption} %For Tables

\usepackage{lscape} %for Tables

\usepackage{blindtext}

\pagestyle{plain}

\begin{document}