New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tasks throw runtime error - `status` is undefined #281

Closed
mayhewluke opened this Issue Jun 18, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@mayhewluke

mayhewluke commented Jun 18, 2015

The first example in the tasks tutorial worked fine, but as soon as I hit the second tutorial and andThen got thrown into the mix everything blew up with a runtime error:

Cannot read property 'status' of undefined
Open the developer console for more details.

The error in the developer console points to Native.Task line 112.

I'm not sure what's going on but I seem to be able to trigger it via the following code:

import TaskTutorial exposing (getCurrentTime, print)
import Task exposing (Task, andThen)

port runner : Task x ()
port runner =
  getCurrentTime `andThen` print
@mayhewluke

This comment has been minimized.

Show comment
Hide comment
@mayhewluke

mayhewluke Jun 18, 2015

False alarm (sorry!). After doing some digging I found out that the issue was actually in evancz/task-tutorial, not Elm core. I've opened an issue about it there instead (evancz/task-tutorial#4).

mayhewluke commented Jun 18, 2015

False alarm (sorry!). After doing some digging I found out that the issue was actually in evancz/task-tutorial, not Elm core. I've opened an issue about it there instead (evancz/task-tutorial#4).

@mayhewluke mayhewluke closed this Jun 18, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment