Skip to content
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

Failed to execute 'removeChild' on 'Node' #11

Open
basz opened this issue Jul 3, 2020 · 1 comment
Open

Failed to execute 'removeChild' on 'Node' #11

basz opened this issue Jul 3, 2020 · 1 comment

Comments

@basz
Copy link
Contributor

basz commented Jul 3, 2020

I have a template containing

<PortalTarget @name="target" class="btn-group pr-1 pb-1"/>

{{#if this.editMode}}
  {{component ''my-edit-component"}}
{{else}}
  {{component ''my-view-component"}}
{/if}

both components Portal into the same PortalTarget... When I toggle this.editMode I get the following error...

Fatal error: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. I remember a similar thing was the case with ember-wormhole. Conditionals inside the sending component needed to be wrapped inside a div to avoid this error if I remember correctly...

@simonihmig
Copy link
Owner

Yeah, I remember this problem. Not sure if that's the case here. But the error definitely sounds like something failing inside GlimmerVM. Are you on the latest Ember?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants