[Tex/LaTex] Overleaf compile Error

errorsoverleaf

I'm new with LaTeX and Overleaf and I'm getting a compile error without error message while compiling the following code:

\documentclass[a4paper, oneside]{scrbook}
\usepackage[clearempty]{titlesec}
\usepackage[section]{placeins}
\usepackage{tabularx}
\usepackage{pdfpages}

\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[colorinlistoftodos]{todonotes}

\usepackage{glossaries}
\setacronymstyle{long-short}
\newacronym{ics}{ICS}{Ice Cream Sandwich}


\usepackage[
backend=biber,
style=authoryear-icomp,    
firstinits=true,
isbn=false,                
pagetracker=true,          
maxbibnames=50,            
maxcitenames=2,            
autocite=inline,           
block=space,               
backref=true,              
backrefstyle=three+,       
date=short,                
url=false,
doi=false,
eprint=false,
isbn=false
]{biblatex}

\usepackage[hidelinks]{hyperref} % Activate Hyperlinks but do not show them.
\usepackage[german]{cleveref}
\usepackage{csquotes}


\title{example1}


\author{Simon Beyer}

\date{\today}

\begin{document}

\begin{titlepage}

    \vspace*{2cm} 

 \begin{center} \large 


    {\huge example}

  \end{center}
\end{titlepage}

%\setcounter{page}{1}
\tableofcontents

\chapter{example1}

\section{example2}
\section{example3}



\end{document}

Best Answer

There are two things causing errors:

  1. In the center environment you have an opening brace ({) without a closing brace. As it stands, you can just remove that brace.

  2. titlesec is apparently not compatible with the KOMA-classes. I don't know if there is a way to use both, but the simplest solutions is either

    1. Remove \usepackage[clearempty]{titlesec}, or

    2. Use book instead of scrbook.

In addition, Overleaf doesn't seem to be able to deal with biblatex. Removing that package, and it compiles fine. This is a bit strange, considering that biblatex isn't used at all, and there are no errors in the .log file or the .blg file. I have no idea what's going on, at the moment. Even this minimal file makes Overleaf throw an error, even though there is no actual error:

\documentclass{article}
\usepackage{biblatex}
\begin{document}
abc
\end{document}

I sent a message to Overleaf about this.