F35, pandoc, and xelatex's fancyhrd package

I have a script that calls pandoc --pdf-engine=xelatex […] and in the markdown, I have

header-includes: |
    \usepackage{fancyhdr}

which used to work fine on F34. Now, I get this error:

Error producing PDF.
! Undefined control sequence.
<argument> \undefinedpagestyle

l.83 \pagestyle{fancy}

Yet, I have these installed:

texlive-fancyhdr-it-doc-svn21912.0-45.fc35.noarch
texlive-autofancyhdr-svn54049-45.fc35.noarch
texlive-scrlayer-fancyhdr-svn58746-45.fc35.noarch
texlive-fancyhdr-doc-svn57672-45.fc35.noarch
texlive-fancyhdr-svn57672-45.fc35.noarch

Any idea what I am doing wrong?

Hi. I think this question would be better to post on ask.fedoraproject.org. I don’t think there are that many pandoc users on this forum and you will probably get better answers there.

I have done so here. Thank you.