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

Fix for the Issue Phoenix.HTML is no longer supported in v4.0 #148

Closed
wants to merge 1 commit into from

Conversation

alexfilatov
Copy link

@alexfilatov alexfilatov commented Jun 12, 2024

== Compilation error in file lib/exq_ui_web/views/layout_view.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/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    (elixir 1.15.7) expanding macro: Kernel.use/1
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    expanding macro: ExqUIWeb.__using__/1
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    (elixir 1.15.7) expanding macro: Kernel.use/2
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)

and bumped deps versions

```
== Compilation error in file lib/exq_ui_web/views/layout_view.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/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    (elixir 1.15.7) expanding macro: Kernel.use/1
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    expanding macro: ExqUIWeb.__using__/1
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    (elixir 1.15.7) expanding macro: Kernel.use/2
    lib/exq_ui_web/views/layout_view.ex:3: ExqUIWeb.LayoutView (module)
    ```
@ananthakumaran
Copy link
Collaborator

@alexfilatov can you try this PR #147 Let me know if it works for you, I can get it merged

@alexfilatov
Copy link
Author

@alexfilatov can you try this PR #147 Let me know if it works for you, I can get it merged

yes, probably after package will be changed back to :exp_ui - currently it is even not compiling

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

Successfully merging this pull request may close these issues.

2 participants