phoenix-todo-list-tutorial icon indicating copy to clipboard operation
phoenix-todo-list-tutorial copied to clipboard

Compilation error due to undefined function complete/1 in AppWeb.ItemHTML.

Open kimutaieddy opened this issue 1 year ago • 1 comments

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.

kimutaieddy avatar Aug 29 '24 19:08 kimutaieddy

Thank you for reporting this. 👌

nelsonic avatar Aug 29 '24 21:08 nelsonic