I have installed it on Phoenix 1.8.1 (without authentication or other packages and got 2 problems).
I had to set up things manually the 2nd way because the mix routex.install command produced this error in terminal:
$ mix routex.install
** (Mix) The task “routex.install” could not be found
And the second issue is that when trying to sue the code in live view
then this part → <.link is showing this error:
** (FunctionClauseError) no function clause matching in anonymous fn/1 in Routex.Branching.build_case/6
The following arguments were given to anonymous fn/1 in Routex.Branching.build_case/6:
\# 1
{:->, \[newlines: 1\], \[\[0\], {{:., \[\], \[Phoenix.VerifiedRoutes, :sigil_p\]}, \[\], \[{:<<>>, \[line: 29\], \["/thermostat"\]}, \[\]\]}\]}
(routex 1.2.4) lib/routex/branching.ex:207: anonymous fn/1 in Routex.Branching.build_case/6
(elixir 1.17.3) lib/enum.ex:4796: Enum.uniq_list/3
(routex 1.2.4) lib/routex/branching.ex:207: Routex.Branching.build_case/6
expanding macro: Helloi18nWeb.Router.RoutexHelpers.sigil_p/2
lib/helloi18n_web/live/thermostat_live.ex:29: Helloi18nWeb.ThermostatLive.render/1
(phoenix_live_view 1.1.13) expanding macro: Phoenix.Component.sigil_H/2
lib/helloi18n_web/live/thermostat_live.ex:6: Helloi18nWeb.ThermostatLive.render/1
the router looks like this:
preprocess_using ExampleWeb.RoutexBackend do
scope “/”, Helloi18nWeb do
pipe_through :browser
get "/", PageController, :home
get "/products", PageController, :home
#
live "/thermostat", ThermostatLive
end
end
–
the lang switcher example:
works without any errors.























