0

This question already has an answer here:

The following stopped working after I updated MikTeX today:

 \documentclass{article}

 \usepackage{amsthm}
 \usepackage{hyperref}
 \usepackage{cleveref}

 \newtheorem{definition_}[equation]{Definition}

 \begin{document}
 \begin{definition_}[Something]
 Something
 \end{definition_}
 \end{document}

The error is

No counter 'd' defined. \begin{definition_}

Am I doing something wrong, or is this is a bug somewhere? The document builds fine if I remove any of the three \usepackages, or remove [equation].

marked as duplicate by barbara beeton, egreg hyperref Jun 28 '16 at 14:18

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.