Skip to content
This repository has been archived by the owner on Aug 23, 2018. It is now read-only.

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

Open
shamansir opened this issue Dec 21, 2016 · 2 comments
Open

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

shamansir opened this issue Dec 21, 2016 · 2 comments

Comments

@shamansir
Copy link

shamansir commented Dec 21, 2016

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
Copy link

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants