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

Should have a 'did you mean' sugguestion when typo in module import #257

Open jessta opened 6 years ago

jessta commented 6 years ago

Typos in module names should give a 'did you mean' suggestion.

Here the user has made a typo of Websocket instead of WebSocket the compiler suggesting they might have meant WebSocket would be more helpful.

$elm-make ./src/Main.elm --output=main.js
I cannot find module 'Websocket'.

Module 'Update' is trying to import it.

Potential problems could be:
  * Misspelled the module name
  * Need to add a source directory or new dependency to elm-package.json