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

"I cannot find module X": it would be nice to show the client module’s file path #233

Open gurdiga opened 7 years ago

gurdiga commented 7 years ago

I’m moving files around a bit, in this particular case it’s DocumentScanat that got moved, and this is the compilation error I get from a client module: 😶

    ~/src/xo.elm ɀ  elm make --warn src/Main.elm --output dist/Main.js
I cannot find module 'DocumentScanat'.

Module 'Dosar.Temei.CerereCreditor.ContractCreditBancar' 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
    ~/src/xo.elm ɀ  

I surely know where to find the file for Dosar.Temei.CerereCreditor.ContractCreditBancar but it would be nice to have its file path copy/paste-able as I do for most other compilation errors. 🤓

What do you guys think? 🤔