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

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
vegabook
I’m brand new to Phoenix and I have stripped one of the demo applications to the bone. I just want to get an svg up on the screen. Here i...
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
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36689 110
New
joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 44167 214
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement