DEV Community

Discussion on: Building a simple Calendly clone with Phoenix LiveView (pt. 3)

Collapse
 
antonrich profile image
Anton

I think that's because you need to remove this from the router:

  scope "/", CalendlexWeb do
    pipe_through :browser

    live "/", PageLive
  end
Enter fullscreen mode Exit fullscreen mode

But then I think you will ran into the same error I ran into.

Collapse
 
slowburnaz profile image
Chris Turner

That worked for me, thanks.

Fortunately (unfortunately?), I didn't run into your issue.

Thread Thread
 
bigardone profile image
Ricardo García Vega

Hi there! Can you run mix hex.outdated and confirm that you have the latest version of LiveView installed?

Thread Thread
 
slowburnaz profile image
Chris Turner • Edited

Actually, I had noticed that your live_view version was higher, so I did update that and it fixed the @owner assignment issue.

I was also running into another issue with the EventType component:
"function EventType.event_type/1 is undefined (module EventType is not available)" and it also couldn't event find the "EventType" module.

It seems that's supposed to be EventType.selector... so changing that, and then adding "alias Calendlex.Components.EventType" to the page_live.ex file helped.

Thread Thread
 
slowburnaz profile image
Chris Turner

I see that Anton was having the same issue as me, so disregard this.

Collapse
 
bigardone profile image
Ricardo García Vega

Yeah, my bad. I should have specified that live_session should wrap the current scope. I'll rewrite that part, thanks for reporting the issue :)