I get this message after updating packages. How can I fix it?
I load my file, then press C-g, and it shows Recent commits. After pressing any usual key, I get the message with the error, and magit appears to be broken.
I found out about M-x magit-emacs-Q-command https://magit.vc/manual/magit/Debugging-Tools.html
Now I get debugger
Debugger entered--Lisp error: (void-variable $)
apply(debug (error (void-variable $)))
transient--exit-and-debug(error (void-variable $))
transient--make-transient-map()
transient--init-keymaps()
transient--init-transient(magit-log nil nil)
#f(compiled-function () #<bytecode -0x1b4fe43808649e57>)()
transient--env-apply(#f(compiled-function () #<bytecode -0x1b4fe43808649e57>) #<magit-log-prefix magit-log-prefix-100a1717a0ba>)
transient-setup(magit-log)
magit-log()
funcall-interactively(magit-log)
call-interactively(magit-log nil nil)
command-execute(magit-log)
Strange...
It appears that removing transient.elc has fixed the problem.
The folder of the *.elc file was: ~/.emacs.d/elpa/transient-20251020.1535/