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 upRuntime `TypeError: domNode.elm_event_node_ref is undefined` when using multiple Html.App.map calls #615
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
May 19, 2016
Contributor
@niksilver, can you please check whether yours is essentially the same issue as https://github.com/elm-lang/virtual-dom/issues/21, and if so, close here?
|
@niksilver, can you please check whether yours is essentially the same issue as https://github.com/elm-lang/virtual-dom/issues/21, and if so, close here? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jvoigtlaender
May 19, 2016
Contributor
Or better yet, look out for when the fix to https://github.com/elm-lang/virtual-dom/issues/21 is released, and then check whether it fixes your case as well?
|
Or better yet, look out for when the fix to https://github.com/elm-lang/virtual-dom/issues/21 is released, and then check whether it fixes your case as well? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
niksilver
May 19, 2016
@jvoigtlaender It looks incredibly similar, particularly the reference to "The repeated App.map is necessary to trigger the error". It makes good sense for me to look out for a fix to elm-lang/virtual-dom#21 and update this issue then.
niksilver
commented
May 19, 2016
|
@jvoigtlaender It looks incredibly similar, particularly the reference to "The repeated |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
evancz
May 19, 2016
Member
Don't want to keep multiple issues for the same thing. This is definitely a duplicate.
|
Don't want to keep multiple issues for the same thing. This is definitely a duplicate. |
niksilver commentedMay 19, 2016
When I compile and run the following code (Elm 0.17) it results in repeated
TypeError: domNode.elm_event_node_ref is undefined(Firefox 46.0.1, Windows 10) orUncaught TypeError: Cannot set property 'tagger' of undefined(Chrome 50.0.2661.102 m, Windows 10) in the web console. Error is in app.js line 6941.Main.elm:
index.html:
When we load index.html the web console shows the TypeError above, once per Ping (i.e. once every 30 ms).
I realise the above code looks odd, but it's actually a cut-down version of a real application which I'm trying to convert from Elm 0.16 to 0.17. So it is based on a real use case.
I've tried to reduce the code even further, but cannot do it while still demonstrating the TypeError. Here are some ways I've tried to reduce the above code, but unsuccessfully, because each of these changes actually eliminates the error - even though none of these should alter the core logic:
viewchange[ view2 0, view2 0 ]to a singleton[ view2 0 ]viewremove one or both of theHtml.App.map identitylinesview2fromInt -> Svg Msgto justSvg Msg, thus removing the dummy argumentview2change the call ofHtml.App.map (always Ping)toHtml.App.map identityview2remove the call ofHtml.App.map (always Ping)entirely, so that the function just returnsgroupedCirclegroupedCircleso that it doesn't useSvg.gand just returns the SVGcircledirectlyThanks in advance.