Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issue with latest Phoenix 1.7 #147

Open
u2ix opened this issue Apr 27, 2024 · 0 comments
Open

Compatibility issue with latest Phoenix 1.7 #147

u2ix opened this issue Apr 27, 2024 · 0 comments

Comments

@u2ix
Copy link

u2ix commented Apr 27, 2024

Added this to a app and I receive the following message.
Also tried the suggestion of adding {:phoenix_html_helpers, "~> 1.0"}. But message doesn't change.

==> live_phone
Compiling 3 files (.ex)

== Compilation error in file lib/live_phone.ex ==
** (RuntimeError) use Phoenix.HTML is no longer supported in v4.0.

To keep compatibility with previous versions, add {:phoenix_html_helpers, "~> 1.0"} to your mix.exs deps
and then, instead of "use Phoenix.HTML", you might:

    import Phoenix.HTML
    import Phoenix.HTML.Form
    use PhoenixHTMLHelpers


    (phoenix_html 4.1.1) expanding macro: Phoenix.HTML.__using__/1
    lib/live_phone.ex:8: LivePhone (module)
    (elixir 1.16.2) expanding macro: Kernel.use/1
    lib/live_phone.ex:8: LivePhone (module)
could not compile dependency :live_phone, "mix compile" failed. Errors may have been logged above. You can recompile this dependency with "mix deps.compile live_phone --force", update it with "mix deps.update live_phone" or clean it with "mix deps.clean live_phone"


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant