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?

2 Likes

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.

3 Likes

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.

3 Likes