alexandru-calinoiu

alexandru-calinoiu

Isolate phoenix_html

Hi,

My app has a dependency of phoenix_html 3.3 that introduces a deprecation warning form_for/3 without an anonymous function is deprecated. If you are using Phoenix.LiveView, use the new Phoenix.Component.form/1 component

I also use https://github.com/aesmail/kaffy that depends on phoenix_html 3.0

The problem that I have is that I get this warning when rendering kaffy forms, I expect for the dependencies to be isolated.

What is a proper way to handle this type of issues?

Marked As Solved

LostKobrakai

LostKobrakai

You cannot have multiple versions of the same dependency at the same time. You’d either need to stay on the older version of phoenix_html or update kaffy to support 4.x.

Also Liked

josevalim

josevalim

Creator of Elixir

The warnings are isolated when they happen at compile-time. This is unfortunately a runtime warning, which means you will see it unless kaffy is updated.

Last Post!

josevalim

josevalim

Creator of Elixir

The warnings are isolated when they happen at compile-time. This is unfortunately a runtime warning, which means you will see it unless kaffy is updated.

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
Lily
In templates/appointment/index.html.eex: <%= for appointment <- @appointments do %> <tr> <td><%= appoi...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
sergio_101
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

Qqwy
Update: How to use the Blogs & Podcasts section You can post links to your blog posts or podcasts either in one of the Official Blog...
3271 130579 1222
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54092 488
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

We're in Beta

About us Mission Statement