Hello, i just added live admin to my project and when i visit a route which should contain a page for my resource i get this error:
no function clause matching in String.match?/2
Called with 2 arguments
nil
~r/(home|session)/
Attempted function clauses (showing 1 out of 1)
def match?(*string*, *regex*) when *is_binary(string)*
It seems that the error occurs within this file:
https://github.com/tfwright/live_admin/blob/main/lib/live_admin/components/nav.ex
Thanks!
@tfwright
Hi @Wojciech, can you open an issue on the GitHub repo? It will ask you to provide a bit of extra information to help me diagnose the issue. Thanks!
Sure, i’ll do so tomorrow.
LiveAdmin is not expected to be compatible with LV 1.0 and the dependencies got resolved because I had an override on phoenix_live_view dependency, it seems that all newly generated phoenix apps have it.
It also seems that default phoenix project won’t function with LiveView older than 1.0.0-rc.0 as it uses used_input?.
https://github.com/tfwright/live_admin/issues/124