elm-spa icon indicating copy to clipboard operation
elm-spa copied to clipboard

elm-spa failed to understand an error

Open loicknuchel opened this issue 2 years ago • 2 comments

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!

loicknuchel avatar Jun 06 '22 09:06 loicknuchel

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?

loicknuchel avatar Jun 06 '22 12:06 loicknuchel

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.

mc706 avatar Jul 28 '22 14:07 mc706

Same for me, would be much better, if the error message of elm-compiler would be shown.

nilskuhn avatar Dec 03 '22 12:12 nilskuhn