“(ArgumentError) cannot escape #Reference” when compiling

Hello,

I have the following error after an update (when running ecto.migrate):

== Compilation error in file lib/pleroma/web/endpoint.ex ==
** (ArgumentError) cannot escape #Reference<0.3211400832.3395420163.59762>. The supported values are: lists, tuples, maps, atoms, numbers, bitstrings, PIDs and remote functions in the format &Mod.fun/arity
    (elixir 1.18.4) src/elixir_quote.erl:554: :elixir_quote.argument_error/1
    (elixir 1.18.4) src/elixir_quote.erl:482: :elixir_quote.do_quote_splice/4
    (elixir 1.18.4) src/elixir_quote.erl:150: :elixir_quote.do_escape/2
    (elixir 1.18.4) src/elixir_quote.erl:170: :elixir_quote."-do_escape/2-lc$^1/1-0-"/3
    (elixir 1.18.4) src/elixir_quote.erl:171: :elixir_quote."-do_escape/2-lc$^1/1-0-"/3
    (elixir 1.18.4) src/elixir_quote.erl:171: :elixir_quote.do_escape/2
    (elixir 1.18.4) src/elixir_quote.erl:393: :elixir_quote.do_quote/2
    (elixir 1.18.4) src/elixir_quote.erl:482: :elixir_quote.do_quote_splice/4

I am using Gentoo with elixir 1.18.4 and erlang 28.1.

I tried following the Compilation Troubleshooting section of the README, and switching from stable (v3.17.0) to develop, with no success.
(This actually created a new problem, but I managed to get back to the same place after following instructions from https://meta.akkoma.dev/t/could-not-compile-dependency-syslog/892/8.)

git status says my working tree is clean.

Thanks in advance for the help.

your issue is an elixir/erlang version mismatch

elixir 1.18 does not work with erlang 28

Thanks. Both of those versions were the stable ones on Gentoo amd64, I installed the latest unstable versions instead and they fit, so my issue is fixed.