-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Say we have the following import
import Html
and later
view : Model -> Html Msg
A beginner to elm like myself would be very confused seeing the following error message
I cannot find a `Html` type:
32| view : Model -> Html Msg
^^^^
These names seem close though:
Bool
Cmd
Char
Int
Hint: Read <https://elm-lang.org/0.19.1/imports> to see how `import`
declarations work in Elm.
What do you mean? Html is right there!
What I would expect to happen:
A more helpful error message would say something like this:
I cannot find a `Html` type. I do see that you have already imported `Html` package, and that contains `Html` type. Perhaps you meant to say `import Html exposing Html`. You could also modify your usage:
32| view : Model -> #Html#.Html Msg
aaaaargZombies and cptakzero
Metadata
Metadata
Assignees
Labels
No labels