I copied an existing project on overleaf but it doesn't display the icons, instead shows the code, for example, the main project is:
but the copied project is for LinkedIn icon:
here is a minimal reproducible example:
\documentclass[10pt,letterpaper,roman]{moderncv}
\usepackage{array}
\usepackage{url}
\usepackage{moderncvcompatibility}
\usepackage{tikz}
\usepackage[super]{nth}
\usepackage{ulem}
\usepackage{fontawesome5}
\usepackage{enumitem}
\usepackage{filecontents}
\usepackage[scale=0.89, top=0.3in, bottom=0.35in]{geometry}
\moderncvstyle{banking}
\moderncvcolor{blue}
\firstname{Shirin}
\familyname{JZ}
\email{...}
\mobile{...}
\extrainfo{\link[\faLinkedin \addvspace{1}]{...}}
\begin{document}
\makecvtitle
\end{document}
Two problems:
\addvspace{1}
where you are using it. You'll get an error message because of this. Never ignore error messages...\documentclass[10pt,letterpaper,roman]{moderncv}
\usepackage{array}
\usepackage{url}
\usepackage{moderncvcompatibility}
\usepackage{tikz}
\usepackage[super]{nth}
\usepackage{ulem}
\usepackage{fontawesome5}
\usepackage{enumitem}
\usepackage{filecontents}
\usepackage[scale=0.89, top=0.3in, bottom=0.35in]{geometry}
\moderncvstyle{banking}
\moderncvcolor{blue}
\firstname{Shirin}
\familyname{JZ}
\email{...}
\mobile{...}
\extrainfo{
\link[
\faLinkedin %\addvspace{1}
]{...}}
\begin{document}
\makecvtitle
\end{document}