Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTrivial port send example: Uncaught TypeError: Cannot read property 'tag' of undefined #822
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
process-bot
Jan 24, 2017
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.
process-bot
commented
Jan 24, 2017
|
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. |
maca
changed the title from
Trivial port example: Uncaught TypeError: Cannot read property 'tag' of undefined
to
Trivial port send example: Uncaught TypeError: Cannot read property 'tag' of undefined
Jan 24, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
maca
Jan 24, 2017
It works fine when I define my main module as a port module and define the ports there, instead of doing it in another file/module.
Feel free to disregard
maca
commented
Jan 24, 2017
|
It works fine when I define my main module as a port module and define the ports there, instead of doing it in another file/module. Feel free to disregard |
jvoigtlaender
closed this
Jan 25, 2017
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
aaronjameslang
Aug 25, 2017
This still occurs, specifically if the project's port module has a name beginning with a letter before J, and does not have a declared dependency on Json.Decode then the elm compiler will emit the port module code before Json.Decode which causes all decoders to be Undefined. See https://groups.google.com/forum/#!topic/elm-discuss/Zs5LFb_Ei_4
Edit: Canonical issue appears to be https://github.com/elm-lang/core/issues/703
aaronjameslang
commented
Aug 25, 2017
•
|
This still occurs, specifically if the project's port module has a name beginning with a letter before J, and does not have a declared dependency on Edit: Canonical issue appears to be https://github.com/elm-lang/core/issues/703 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
FranzSkuffka
commented
May 25, 2018
•
|
For me this also occurs. Please Re-Open. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Please make an http://sscce.org/ and open a new issue. |
maca commentedJan 24, 2017
•
edited
Edited 1 time
-
maca
edited Jan 24, 2017 (most recent)
I am getting this runtime error for the most trivial port send example:
JS:
Elm:
Using: elm 0.18
Browser/OS: Chromium 55/Linux
Gist coming...