Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to Update Elixir Phoenix Liveview to Version 0.18.16, Getting Strange Error

I am trying to update my liveview from v0.17.5 to v0.18.16. I put this in my mix.exs file:

{:phoenix_live_view, "~> 0.18.16"},
{:floki, ">= 0.30.0", only: :test}

but I get error

Because your app depends on phoenix_live_view empty which doesn't match any versions, version solving failed.

Is this problem known and is there a workaround?

like image 584
paulrusu Avatar asked Sep 15 '25 18:09

paulrusu


1 Answers

Bumped upon a similar while manually upgrading Phoenix with

{:phoenix_live_view, "~> 0.18.16"}, switching to {:phoenix_live_view, "~> 0.19.0"}.

The error for mix deps.get was:

Resolving Hex dependencies...
Resolution completed in 0.041s
Because "your app" depends on "phoenix_live_view empty" which doesn't match any versions, version solving failed.
** (Mix) Hex dependency resolution failed

Running mix deps.tree actually helped to see that one of my direct dependencies had {:phoenix_live_view, "~> 0.18.18"}, and after also upgrading it also to 0.19.0 the issue was gone.

Hope that helps

like image 170
aiwaiwa Avatar answered Sep 17 '25 07:09

aiwaiwa