elm-spa
elm-spa copied to clipboard
elm-spa failed to understand an error
Hi, I get
! elm-spa failed to understand an error
Please report the output below to https://github.com/ryannhg/elm-spa/issues
-----
{}
-----
! elm-spa failed to understand an error
Please send the output above to https://github.com/ryannhg/elm-spa/issues
When I run elm-spa build
.
I did a few commits and I have no idea how to investigate this (last commit in https://github.com/azimuttapp/azimutt). Do you have a way to see the underlying error to have some clue?
Thanks!
After a few try & error, finally found the commit and problem, it's because I had a Debug.toString
in my code (previously it was there but not used, so everything worked and after I used it).
Any way to make this more obvious in the error message?
While I have run into this with the usage of Debug.log
and other Debug
modules, I just ran into it again when I accidentally introduced a circular import. The elm compiler usually points these out so it was confusing to see elm-spa return pretty much nothing for the error.
Same for me, would be much better, if the error message of elm-compiler would be shown.