evancz / elm-todomvc

The TodoMVC app written in Elm, nice example for beginners.
http://evancz.github.io/elm-todomvc/
BSD 3-Clause "New" or "Revised" License
1.22k stars 329 forks source link

Issue when we try running using elm reactor on Main.elm #67

Closed benkoshy closed 4 years ago

benkoshy commented 5 years ago

How to reproduce

It works fine if you click on index.html but if you want to make see the elm debugger in action, then it is a little problematic:

  1. Clone the repo.

  2. Run elm reactor

  3. Click on Main.elm.

The following error comes up:

Initialization Error

Error: Problem with the flags given to your Elm program on initialization.

Json.Decode.oneOf failed in the following 2 ways:

(1) Problem with the given value:

    undefined

    Expecting null

(2) Problem with the given value:

    undefined

    Expecting an OBJECT with a field named `visibility`
zyrconium13 commented 4 years ago

I managed to get it working by manually modifying the index.html file generated by elm make... command.