Could not warm up static assets (Error after upgrading to phoenix 1.7 from 1.6)

I am upgrading a legacy application from phoenix 1.6 to phoenix 1.7

I get the following error when running it:

[error] Could not warm up static assets: could not read file "_build/test/lib/zuhause": illegal operation on a directory
 application=phoenix domain=elixir file=lib/phoenix/endpoint/supervisor.ex line=329 mfa=Phoenix.Endpoint.Supervisor.warmup/1 pid=<0.25312.0>

Zuhause is the name of the application for context
Does anyone know what is going on?

Looks like some permission issues, have you tried removing _build directory and compiling the app again?

Yes I have tried that, so it might not be a permission issue:(