-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Having some problems following the instructions
elixir -v
Erlang/OTP 25 [erts-13.0] [source] [64-bit] [smp:12:12] [ds:12:12:10] [async-threads:1] [jit]
Elixir 1.14.3 (compiled with Erlang/OTP 25)
mix phx.new -v
Phoenix installer v1.7.0
First error - section 2
Create the lib/liveview_chat_web/views/message_view.ex file: creates this error but file contents pasted from instructions.
mix phx.server
Compiling 1 file (.ex)
== Compilation error in file lib/liveview_chat_web/views/message_view.ex ==
** (UndefinedFunctionError) function LiveviewChatWeb.view/0 is undefined or private
LiveviewChatWeb.view()
expanding macro: LiveviewChatWeb.using/1
lib/liveview_chat_web/views/message_view.ex:2: LiveviewChatWeb.MessageView (module)
(elixir 1.14.3) expanding macro: Kernel.use/2
lib/liveview_chat_web/views/message_view.ex:2: LiveviewChatWeb.MessageView (module)
Delete files paragraph is asking to delete default generated code folders and files that do not exist.
Finally you can delete all the default generated code linked to the PageController:
rm test/liveview_chat_web/controllers/page_controller_test.exs
rm lib/liveview_chat_web/controllers/page_controller.ex
rm test/liveview_chat_web/views/page_view_test.exs
rm lib/liveview_chat_web/views/page_view.ex
rm -r lib/liveview_chat_web/templates/page
Metadata
Metadata
Assignees
Labels
Type
Projects
Status