live_admin icon indicating copy to clipboard operation
live_admin copied to clipboard

Fix compatibility issue with phoenix_html 4.0

Open obieewan opened this issue 11 months ago • 3 comments

obieewan avatar Mar 24 '24 06:03 obieewan

Hi @obieewan bit confused here since I haven't seen any errors around this and phoenix_html has been locked to 4 for while now. Can you give a bit more context on the source of the problem this fixes?

tfwright avatar Mar 30 '24 19:03 tfwright

Hello @tfwright , I encountered this error when I compile the app after adding this as dependency: Screenshot 2024-04-01 at 10 30 47

This is my current setup: Screenshot 2024-04-01 at 10 32 36

obieewan avatar Apr 01 '24 02:04 obieewan

I had the same issue, and I think I figured out why.

I added {:live_admin, "~> 0.11.4"} to my mix.exs, and I got the same error message ("use Phoenix.HTML is no longer supported in v4.0"). Looking through the code that got pulled I can indeed see lots of use Phoenix.HTML.

It seems like it was all fixed in this commit: https://github.com/tfwright/live_admin/commit/364653d39a51f5b1edd46f113aaff48e83bf30f3 This commit is from Feb 3rd, which is after the release of 0.11.4 (Jan 29), so it's not included in the latest release.

I pulled the live_admin code from latest main here on Github and voila - everything works :) All we need here is probably a new release to hex.pm.

eriknaslund avatar Apr 02 '24 18:04 eriknaslund

Released https://hex.pm/packages/live_admin/0.11.5

tfwright avatar Apr 10 '24 00:04 tfwright