-
Notifications
You must be signed in to change notification settings - Fork 795
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
bug: Failed to execute 'removeChild' on 'Node' #3278
Comments
Hey @jeco123 👋 Thanks for the bug report. Could you do me a favor and please create a minimal reproduction case for the team to pull down? While I understand that this appears to be the same as ionic-team/ionic-framework#18782, it'd be great to have something that's both 1) able to be quickly pulled down by the team without having to recreate the scenario by hand 2) using recent versions of the libraries involved. Thanks! |
Hi @rwaskiewicz I'm gonna create a mono repo with a simple case. Regards, Jérôme |
Hi guys, here is my repo => https://github.com/jeco123/stencilbug.git |
Just to add more info #2259 |
I'm facing the same issue. I have a dropdown and dropdown-item as stencil webcomponent. I used the react-output-target to generate wrapper for react. example usage:
if i start typing into the input field i get |
Can you try to wrap your dropdown item into a div for exemple just to see if you have still the error ?I had another pb with vuejs, and wrapping that made my slot working! |
Sadly not. Its resulting into the same problem
If i enable the shadow dom on the MyDropdown its working, but for now its no option for us. I'm not so deep inside the technical implementation why shadow dom has so much affect into rendering slots 🤔 |
Hi guys, any news about this subject ? Regards, Jérôme |
Seeing the same issue when shadow dom is disabled. Adding a child div seems to work for now. As far as i see
at this point this is the view react has of this in its virtual dom
this is the actual DOM, the view react has, has not changed since 1.
|
This commit adds a patch for an HtmlElement's `removeChild` method Fixes: #3278 #2259 STENCIL-937 Co-authored-by: johnjenkins <[email protected]>
* fix(runtime): add patch for `removeChild` on `scoped` components This commit adds a patch for an HtmlElement's `removeChild` method Fixes: #3278 #2259 STENCIL-937 Co-authored-by: johnjenkins <[email protected]> * add e2e tests * PR feedback Co-authored-by: Ryan Waskiewicz <[email protected]> --------- Co-authored-by: johnjenkins <[email protected]> Co-authored-by: Ryan Waskiewicz <[email protected]>
The fix for this issue has been released as a part of today's Stencil 4.9.0 release under the |
Hi guys, i updated my repo with the stencil 4.12.1 release. The bug is already there… Did i miss something in the stencil config? |
@jeco123 can you do me a favor and verify that |
Here is the stencil config https://github.com/jeco123/stencilbug/blob/main/packages/web-components/stencil.config.ts. export const config: Config = {
namespace: 'web-components',
extras: {
experimentalSlotFixes: true,
},
… And here is the component https://github.com/jeco123/stencilbug/blob/main/packages/web-components/src/components/grid/Grid.tsx import { Component, h } from '@stencil/core';
@Component({
tag: 'my-grid',
})
export class Grid {
render() {
return (
<div class="grid">
<slot />
</div>
);
}
} |
Ah, okay - the lack of an encapsulation mode is the reason you're still seeing this. You need to set |
Prerequisites
Stencil Version
2.14.1
Current Behavior
I created a simple web component without parameters but with a slot inside using stencil. This component is bundled using the @stencil/react-output-target package (0.3.1).
When the children of the component change dynamically, we got the Failed to execute 'removeChild' on 'Node' error.
This issue has been listed in the ionic-framework projet and is reproductible with stencil.
ionic-team/ionic-framework#18782
Expected Behavior
=> should not generate a fatal error and content must be rerender without crashing.
Steps to Reproduce
Code Reproduction URL
this code is easily reproductible => ionic-team/ionic-framework#18782
Additional Information
No response
The text was updated successfully, but these errors were encountered: