Spacing not working in description environment

I have done this before but for some reason it's not working in my current file.

\begin{description}[largest]
\item[small] Foo
\item[largest] Foobar
\end{description}


This above code give the error

package enumitem error: largest undefined

• an r is missing in \end{description}. Plus you have to post MWE, mimimal working examples. – Denis Apr 2 '19 at 15:52
• @Denis the "r" is not the issue. – Faustus Apr 2 '19 at 16:05
• Please help us help you and add a minimal working example (MWE) that illustrates your problem. Reproducing the problem and finding out what the issue is will be much easier when we see compilable code, starting with \documentclass{...} and ending with \end{document}. – samcarter_is_at_topanswers.xyz Apr 2 '19 at 16:08

You perhaps want

\documentclass{article}
\usepackage{enumitem}

\begin{document}

\begin{description}[widest=largest,itemindent=*,align=left]
\item[small] Foo
\item[largest] Foobar
\end{description}

\end{document}


Fixed. I had imported the enumitem package. It works fine without that.

• without the enumitem package description does not have an optional argument so [largest] would be an error. This does not seem to answer the question asked. – David Carlisle Apr 2 '19 at 16:10