This is essentially the same problem as in Paul Taylor's diagrams.sty NEVER HAPPEN error but the solution given there isn't working for me.
I previously had no problem with this on my old HP laptop running Windows 10, but I just got a new Dell with Windows 11. I installed MiKTeX
(current version appears to be 22.10) and TeXstudio as I usually do. Now if I run the following
\documentclass[12pt]{article}
\usepackage{diagrams}
\begin{document}
\begin{diagram}
A & \rTo & B
\end{diagram}
\end{document}
I get an error that reads "Commutative Diagram: * THIS (S) SHOULD NEVER HAPPEN! * at lines 5--7 [1", although the TeXing finishes and the output pdf file seems to show the correct diagram.
I tried to implement the solution from the link above, but when I insert that code, I get the following error:
Undefined control sequence. \expandafter\foo\row@to@buffer
Any suggestions for fixing this would be much appreciated.