elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.
BSD 3-Clause "New" or "Revised" License
428 stars 63 forks source link

`runElmProgram is not a function` in JS Console with `Program Never` #221

Open shamansir opened 7 years ago

shamansir commented 7 years ago

Getting this in the JavaScript console:

Whatever.elm:10 TypeError: runElmProgram is not a function. (In 'runElmProgram()', 'runElmProgram' is undefined)
screen shot 2016-12-21 at 09 44 25

With this code:

module Whatever exposing (..)
import Platform exposing (..)

main : Program Never (Maybe a) Bool
main =
    program
        { init = (Nothing, Cmd.none)
        , subscriptions = (\_ -> Sub.none)
        , update = (\_ -> (\_ -> (Nothing, Cmd.none)))
        }

File's named Whatever.elm

> elm-reactor --version
0.18.0
> elm-make --version
elm-make 0.18 (Elm Platform 0.18.0)

Browser: Safari Version 10.0.1 (12602.2.14.0.7) OS: Mac OS X Sierra 10.12.1 (16B2555)

process-bot commented 7 years ago

Thanks for the issue! Make sure it satisfies this checklist. My human colleagues will appreciate it!

Here is what to expect next, and if anyone wants to comment, keep these things in mind.

shamansir commented 7 years ago

This program indeed has no view, what I actually wanted is to debug JS ports interaction with hot swapping, without the need to recompile.