Bcrypt_elixir loading error at runtime when doing mix test

Hi, there, just got the error below when running mix test, might need your help~~

[error]

17:31:04.096 [error] Process #PID<0.6184.0> raised an exception
** (RuntimeError) An error occurred when loading Bcrypt.
Make sure you have a C compiler and Erlang 20 installed.
If you are not using Erlang 20, either upgrade to Erlang 20 or
use version 0.12 of bcrypt_elixir.
See the Comeonin wiki for more information.

(bcrypt_elixir 3.3.2) lib/bcrypt/base.ex:15: Bcrypt.Base.init/0
(kernel 10.2.3) code_server.erl:1379: anonymous fn/1 in :code_server.schedule_on_load/4

17:31:04.121 [error] Process #PID<0.6213.0> raised an exception
** (RuntimeError) An error occurred when loading Bcrypt.
Make sure you have a C compiler and Erlang 20 installed.
If you are not using Erlang 20, either upgrade to Erlang 20 or
use version 0.12 of bcrypt_elixir.
See the Comeonin wiki for more information.

(bcrypt_elixir 3.3.2) lib/bcrypt/base.ex:15: Bcrypt.Base.init/0
(kernel 10.2.3) code_server.erl:1379: anonymous fn/1 in :code_server.schedule_on_load/4

[/error]

what i can confirm is that i have C compiler installed and other envs:
Mac M3
Elixir: 1.18.3-otp-27
Erlang: 27.3
bcrypt_elixir: 3.3.2
running within latest Phoenix.

Any hints would be appreciated, thanks

Not sure about this error specifically, but have you tried running mix clean and recompiling?

mix clean --deps
mix test

Always good to rule this out in case something is in a bad state.

yeah, i did this cmd mix deps.clean --all && mix deps.get && mix compile with no error, but got error after `mix test`

what i did is just executing mix phx.gen.auth Accounts User users for a new Phoenix application and do `mix test`

mix deps.clean --all && mix deps.get && mix compile

Did you run this with MIX_ENV=test?

Let me try that, thanks~

[crickets]

Any luck?