naymspace / backpex

Backpex is a highly customizable administration panel for Phoenix LiveView applications.
https://backpex.live
MIT License
507 stars 30 forks source link

Undefined function live_session/3 #422

Closed azharmalik3 closed 3 months ago

azharmalik3 commented 3 months ago

I am following the Backpex installation guide to run Backpex in my project.

But getting an error on adding the route.

image

image

Flo0807 commented 3 months ago

Hey, do you have a running Phoenix LiveView application? If you import import Phoenix.LiveView.Router it should work: https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.Router.html#live_session/3

azharmalik3 commented 3 months ago

Yes, it works after import LiveView.Router.

Thanks.