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
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.
2
Last Post!
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!
0
Popular in Questions
I would like to know what is the best IDE for elixir development?
New
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
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
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
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
After calling mix ecto.create I get this error:
17:00:32.162 [error] GenServer #PID<0.412.0> terminating
** (Postgrex.Error) FATAL...
New
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
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
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
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
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
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
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
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #metaprogramming
- #security
- #hex









