In my use of tikz-cd, the down, right and left arrows (\ar{d},\ar{r}, \ar{l} respectively) work fine, but I seem to have no uparrow (nor any up right arrow or up left arrow). When I have \ar{u}, I get the error "No shape named tikz@f@1-0-1 found". Can anyone help me with this?
\documentclass[a4paper,12pt]{article}
\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}
A\ar{u}\\
B
\end{tikzcd}
\end{document}
Replace that u with an l,r or d and it works.

