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

no function clause matching in DemoWeb.UserLive.Edit.mount/2 #43

Open
cdemortier opened this issue Sep 23, 2019 · 0 comments
Open

no function clause matching in DemoWeb.UserLive.Edit.mount/2 #43

cdemortier opened this issue Sep 23, 2019 · 0 comments

Comments

@cdemortier
Copy link

Hi,

Here is the error encountered when I try to edit or show a user.

** (FunctionClauseError) no function clause matching in DemoWeb.UserLive.Show.mount/2 (demo) lib/demo_web/live/user_live/show.ex:23: DemoWeb.UserLive.Show.mount(%{}, %Phoenix.LiveView.Socket{assigns: %{}, changed: %{}, connected?: false, endpoint: DemoWeb.Endpoint, fingerprints: {nil, %{}}, id: "phx-RlPCg8nt", parent_pid: nil, private: %{assigned_new: {%{}, []}, connect_params: %{}}, redirected: nil, root_pid: nil, router: DemoWeb.Router, temporary: %{}, view: DemoWeb.UserLive.Show}) (phoenix_live_view) lib/phoenix_live_view/view.ex:467: Phoenix.LiveView.View.call_mount!/3 (phoenix_live_view) lib/phoenix_live_view/view.ex:435: Phoenix.LiveView.View.call_mount_and_handle_params!/5 (phoenix_live_view) lib/phoenix_live_view/view.ex:300: Phoenix.LiveView.View.static_render/3 (phoenix_live_view) lib/phoenix_live_view/controller.ex:37: Phoenix.LiveView.Controller.live_render/3 (phoenix) lib/phoenix/router.ex:288: Phoenix.Router.__call__/2 (demo) lib/demo_web/endpoint.ex:1: DemoWeb.Endpoint.plug_builder_call/2 (demo) lib/plug/debugger.ex:122: DemoWeb.Endpoint."call (overridable 3)"/2 (demo) lib/demo_web/endpoint.ex:1: DemoWeb.Endpoint.call/2 (phoenix) lib/phoenix/endpoint/cowboy2_handler.ex:42: Phoenix.Endpoint.Cowboy2Handler.init/4 (cowboy) /Users/charles/workspace/phoenix/phoenix_live_view_example/deps/cowboy/src/cowboy_handler.erl:41: :cowboy_handler.execute/2 (cowboy) /Users/charles/workspace/phoenix/phoenix_live_view_example/deps/cowboy/src/cowboy_stream_h.erl:296: :cowboy_stream_h.execute/3 (cowboy) /Users/charles/workspace/phoenix/phoenix_live_view_example/deps/cowboy/src/cowboy_stream_h.erl:274: :cowboy_stream_h.request_process/3 (stdlib) proc_lib.erl:249: :proc_lib.init_p_do_apply/3

I tried multiple elixir versions (in 1.8.2 now).

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 a pull request may close this issue.

1 participant