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

Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'. #70

Closed
JosephShering opened this issue Apr 3, 2016 · 2 comments

Comments

@JosephShering
Copy link

Gallery.js:17105 Uncaught TypeError: Failed to execute 'appendChild' on 'Node': parameter 1 is not of type 'Node'.

if (child) {
        var patches = (0, _diff2.default)(child[PREVIOUS_WIDGET_KEY], root);
        (0, _patch2.default)(child, patches);
      } else {
        child = (0, _createElement2.default)(root);
        node.appendChild(child);
        (0, _delegator2.default)(node);
        (0, _initializeWidgets2.default)(child);
      }

This is inside the render method. Why are you attempting to append the child when it's false-y?

@garbles
Copy link
Owner

garbles commented Apr 5, 2016

hmmm not sure where that's coming from. no source map? i don't think i wrote that code.

@garbles
Copy link
Owner

garbles commented Apr 10, 2016

Going to close because I've just merge the full rewrite branch.

@garbles garbles closed this as completed Apr 10, 2016
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