After creating a new app with mix phx.new livetest --live --binary-id and following usual setup instructions, the app hangs permanently with loading spinner and I see the following error in the console when running mix phx.server and navigating to localhost:400
Clicking on LiveDashboard opens the Dashboard app which is not responsive to further interactions (the loading spinner persists).
Please share your ideas on how to fix this, appreciate your help!
(FunctionClauseError) no function clause matching in Phoenix.LiveView.Channel.start_link/1
Thanks Chris! Updating to LV 0.13 solved the issue.
Also thank you and all contributors for the awesome LiveDashboard app!
Just to note that when I go to LiveDashboard > Metrics > VM (tab) and switch to mobile view via Chromium’s dev tools I consistently see the following error (happens only for portrait mode) in the browser console, and no errors server-side:
6vm:104 Uncaught TypeError: Cannot read property '2' of undefined
at vm:104
at Array.map (<anonymous>)
at Object.values (vm:104)
at vm:104
at Array.forEach (<anonymous>)
at jt (vm:104)
at Mt (vm:104)
at Yt (vm:104)
at vt (vm:104)
at Object.i.setSize (vm:104)
at e.value (vm:104)
at e (vm:104)
Maybe this could hint about some issue with LV-related JavaScripts.
Just want to mention that as of today, I have the exact same problem when launching a new app based on LiveView mix phx.new my_app --live. mix.exs will contain {:phoenix_live_view, "~> 0.12.0"}.
Error:
** (FunctionClauseError) no function clause matching in Phoenix.LiveView.Channel.start_link/1
Changed to {:phoenix_live_view, "~> 0.14.4"}, but now the error is: