Elm-land message type conflicts when using onClick for JS intern

The issue is explained at the template: GitHub - ralphtq/elm-land-siteplan: Templates for elm-land

As a newcomer to Elm this might be an obvious issue.

Hi Ralph, from very briefly looking at Sidebar.elm, it looks like you have to change the signature to

viewSidebar : Html Msg

(note the capital “M”). If you write it lowercase, the “msg” is just an unspecified type variable, which basically means that your view isn’t generating any message at all.

The compiler will show you more places where you have to make this change, too, for example the view function.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.