neda_je

neda_je

running Endpoint terminated; UndefinedFunctionError

It’s my first question here. Actually I’m doing a Pento project through Programming Phoenix LiveView book. I’m getting this error

[error] #PID<0.590.0> running PentoWeb.Endpoint (connection #PID<0.575.0>, stream id 4) terminated
Server: localhost:4000 (http)
Request: GET /guess
** (exit) an exception was raised:
    ** (UndefinedFunctionError) function WrongLive.__live__/0 is undefined (module WrongLive is not available)

And I need a help to fix it.Thank you in advance

Most Liked

al2o3cr

al2o3cr

This likely means you told the router a module was a LiveView, but that module didn’t contain the correct use statement. Check your wrong_live.ex file.

Alternatively, you may not have referred to the module with an accurate name - is the module actually PentoWeb.WrongLive? Check your router.ex file.

Last Post!

neda_je

neda_je

I checked router.ex and I found that I had a two same live routes on two different places and when it matches first one, second one that is more important, fails. I made that mistake while trying different things through reading a book. Thank you very much for your answer!

Where Next?

Popular in Questions Top

hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID&lt;0.412.0&gt; terminating ** (Postgrex.Error) FATAL...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
sorentwo
Hello! tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability. After spen...
985 44608 311
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New

We're in Beta

About us Mission Statement