The issue looks like is you “view function” signature instead “-> Html msg” needs to be “-> Html Msg” essentially the “msg” in lower case is a place holder type and the compiler detected that your code is using the “Msg”. You can check this thread that has better explanation. Html Msg vs Html msg?
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Msg causing Type issue | 4 | 730 | December 9, 2020 | |
| How would produce a list of (Html msg) from a List String | 8 | 1542 | June 17, 2022 | |
| Question regarding guide.elm-lang (Forms) | 4 | 634 | November 23, 2020 | |
| How to map numbers of a list? | 4 | 1443 | February 26, 2019 | |
| Newbie struggling with (Element msg) vs (Element Msg) | 6 | 1047 | May 24, 2022 |