phoenix-todo-list-tutorial
phoenix-todo-list-tutorial copied to clipboard
Compilation error due to undefined function complete/1 in AppWeb.ItemHTML.
I'm encountering a compilation error when running the project. The error message is as follows:
error: undefined function complete/1 (expected AppWeb.ItemHTML to define such a function or for it to be imported, but none are available)%E2%94%8238 %E2%94%82 <li data-id={item.id} class={complete(item)}>%E2%94%82 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^%E2%94%94%E2%94%80 lib/app_web/controllers/item_html/index.html.heex:38: AppWeb.ItemHTML.index/1
The error suggests that the complete/1 function is missing from the AppWeb.ItemHTML module, which is being called in the index.html.heex template file.
Thank you for reporting this. 👌