catra

catra

How to upgrade to phoenix live view 0.15.3

Hey guys,

I’m having problem to upgrade my dependencies. I want to use the allow_upload function in my liveview pages. My current configuration use:

{:phoenix_live_view, "~> 0.14.0"}

when I tried to update to

{:phoenix_live_view, "~> 0.15.3"}

and use mix deps.get then I got the next error:

Failed to use "phoenix" (versions 1.4.9 to 1.4.17) because
  apps/purple_interface/mix.exs requires ~> 1.4.9
  phoenix_live_reload (version 1.2.2) requires ~> 1.4
  phoenix_live_view (version 0.15.3) requires ~> 1.5.7

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix deps.update or mix deps.unlock). If you are unable to resolve the conflicts you can try overriding with {:dependency, "~> 1.0", override: true}

then I tried to update from {:phoenix, “~> 1.4.9”} to {:phoenix, “~> 1.5.7”}

and I got this another error:

Failed to use "phoenix_pubsub" (versions 1.1.0 to 1.1.2) because
  apps/purple_engine/mix.exs requires ~> 1.1
  apps/purple_interface/mix.exs requires ~> 1.1
  phoenix (version 1.5.7) requires ~> 2.0

** (Mix) Hex dependency resolution failed, change the version requirements of your dependencies or unlock them (by using mix dep

anyway, I tried to update phoenix_pubsub and so on until reach {:scrivener_html, “~> 1.8”} in some point I start looping around.

Is there a way to upgrade from {:phoenix_live_view, “~> 0.14.0”} ro {:phoenix_live_view, “~> 0.15.3”} without a lot of pain??

Thanks in advance.

Most Liked

kokolegorille

kokolegorille

Yes, follow the steps to update from Phoenix 1.4 to 1.5… the rest will follow.

ouven

ouven

scrivener_html seems to be abandoned. I cloned it into a private repo and upgraded the dependencies. Based on that I copied the relevant code and eliminated the configurable parts.
The rest that stayed is small enough to maintain with the project.

Where Next?

Popular in Questions Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
shahryarjb
Hello, I have map which I want to convert it to string like this: the map: %{last_name: "tavakkoli", name: "shahryar"} the string I ne...
New
ycv005
I have followed this StackOverflow post to install the specific version of Erlang. And When I am running mix ecto.setup then getting fol...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
earth10
Hi, I’m just starting to build a side-project with Elixir and Phoenix and doing some basic test with Elixir alone. What strikes me is th...
New

Other popular topics Top

lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
chrismccord
As promised, the first release candidate of Phoenix 1.3.0 is out! This release focuses on code generators with improved project structure...
New
TunkShif
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
274 42158 114
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
danschultzer
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch. This project took far...
548 29703 241
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New

We're in Beta

About us Mission Statement