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

Got an empty make error....

Open madsh opened this issue 3 years ago • 3 comments

Got this output after a refactor.

! 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

I have been deleting some pages and adding them again. Maybe even removed one static and added it back under the same name but dynamic.

I works fine during development and elm-spa server i more than happy to show and update the site

madsh avatar Dec 05 '21 20:12 madsh

I have been trying to narrow the cause down and got a minimal change that trickers to error

update : Msg -> Model -> ( Model, Cmd Msg )
update msg model  =
    case msg of       
        FocusedUUID ->
           let
               -- _ = Debug.log "Focusing and updating source to Manual :" "   "
                model2 = model
            in            
            ({ model |  ready = False}, Cmd.none )

I see the error when I uncomment the line about

madsh avatar Dec 05 '21 21:12 madsh

I was getting the same error, I commented all my Debug.log lines and it compiled.

drkgreyhawk avatar Dec 06 '21 22:12 drkgreyhawk

I encountered this error as well, it seems to be generated when an Elm compiler error is not mapped out in elm-spa, so to know what is the exact issue you can run elm make .elm-spa/defaults/Main.elm which will give you the exact error, in my case was a circular dependency causing the unknown error in elm-spa.

joseaquino avatar Mar 09 '22 21:03 joseaquino