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 | 5 | 723 | December 19, 2020 | |
| How would produce a list of (Html msg) from a List String | 9 | 1523 | June 27, 2022 | |
| Question regarding guide.elm-lang (Forms) | 5 | 628 | December 3, 2020 | |
| How to map numbers of a list? | 5 | 1436 | March 8, 2019 | |
| Newbie struggling with (Element msg) vs (Element Msg) | 7 | 1043 | June 3, 2022 |