elm-lang / elm-reactor

Interactive development tool that makes it easy to develop and debug Elm programs.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

shamansir opened this issue · comments

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)

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.

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