[Tex/LaTex] Problem with chemmacros, beamer and filehook-scrlfile.sty

beamerchemmacrosfilehookkoma-script

I am using chemmacros with beamer and it produces the following error

2017/08/28 basic chemmacros module
(/usr/local/texlive/2019/texmf-dist/tex/latex/koma-script/scrlfile.sty
Package: scrlfile 2019/10/12 v3.27 KOMA-Script package (loading files)
LaTeX Warning: Command \InputIfFileExists has changed.
Check if current package is valid.
LaTeX Warning: Command \InputIfFileExists has changed.
Check if current package is valid.
) (/usr/local/texlive/2019/texmf-dist/tex/latex/filehook/filehook-scrlfile.sty
Package: filehook-scrlfile 2011/01/03 v0.1 filehook patch for scrlfile package
! Package filehook Error: Detected 'scrlfile' package with unknown definition o
f \InputIfFileExists.
Use the 'force' option of 'filehook' to overwrite it..
See the filehook package documentation for explanation.
Type H for immediate help.

If I comment out chemmacros or use a different documentclass to beamer there is no error.

Can anyone shed any light on this?

While I do get a usable output it is disconcerting to see an error coming up in the compilation and I am not sure if it will cause a fatal output in different usage of chemmacros . Is this a bug in KOMA-script as I believe it was recently updated but chemmacros wasn't.

\documentclass{beamer}
\usepackage{chemmacros}
\begin{document}

Test

\end{document}

Best Answer

The problem has been resolved by an update of the sansmathaccent package. It now no longer uses the filehook package.