`runElmProgram is not a function` in JS Console with `Program Never`
shamansir opened this issue · comments
Ulric Wilfred commented
Getting this in the JavaScript console:
Whatever.elm:10 TypeError: runElmProgram is not a function. (In 'runElmProgram()', 'runElmProgram' is undefined)
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
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.
Ulric Wilfred commented
This program indeed has no view, what I actually wanted is to debug JS ports interaction with hot swapping, without the need to recompile.