elm / error-message-catalog

A catalog of broken Elm programs / data to improve error messages
BSD 3-Clause "New" or "Revised" License
173 stars 17 forks source link

No suggestion that value may be in another module in same package #305

Open ghost opened 4 years ago

ghost commented 4 years ago
-- BAD IMPORT ------------------------------------------------

The `Html.Extra` module does not expose `onEnter`:

import Html.Extra exposing (onEnter)
                            ^^^^^^^
These names seem close though:

    static
    viewIf
    nothing
    viewIfLazy

I got this error because I'd imported Html.Extra, not Html.Events.Extra. I imported Html.Extra because it was the word in my head after just installing "html-extra". I'd forgotten that the package is made up of several modules. It'd be helpful if the error message also said "Or perhaps onEnter is in one of the other modules, e.g. Html.Events.Extra?"