Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node #25049
Replies: 11 comments 18 replies
-
doesn't seem related to nextjs |
Beta Was this translation helpful? Give feedback.
-
@darwin-morocho Hi! Did you solve this? |
Beta Was this translation helpful? Give feedback.
-
@darwin-morocho HI! I had the same problem here.. Did you solve it? |
Beta Was this translation helpful? Give feedback.
-
Any updates on this? Facing the same issue. |
Beta Was this translation helpful? Give feedback.
-
This is a React error: facebook/react#17256 |
Beta Was this translation helpful? Give feedback.
-
Try wrapping the element in an empty div. Sometimes a library (like google maps) will move the referenced element to a different part of the DOM. So when react tries to remove it, it’s gone. But if you wrap the referenced element in a div, then the div wrapper will remain, even if its child is removed by another non-react process. |
Beta Was this translation helpful? Give feedback.
-
I recieved this error because of .jsx files. Convert .jsx to js and mark it as a Client Component. Using Nextjs 13.4.3 |
Beta Was this translation helpful? Give feedback.
-
if you get this error when you want to create multiple layout.jsx files for different parts of your application make sure to return a react fragment (<></>) from any layout.jsx component Except the root layout. so DO NOT return html and body tag again. |
Beta Was this translation helpful? Give feedback.
-
I solution for this error that I had in my code in Next.js
The HTML and body tag should only be in the root layout not in other layouts for pages. so remove the html and body tag for every layout except the root layout.
{children}
|
Beta Was this translation helpful? Give feedback.
-
Any updates? It is big problem when u use google translator |
Beta Was this translation helpful? Give feedback.
-
same too |
Beta Was this translation helpful? Give feedback.
-
What version of Next.js are you using?
9.5.5
What version of Node.js are you using?
14.16.0
What browser are you using?
Chrome
What operating system are you using?
macOS
How are you deploying your application?
next start
Describe the Bug
I'am implementing the facebook messenger chat using this code
And importing it as
The first time when the page loads it works perfect, but when navigate to another page I have the next error
Using this package https://www.npmjs.com/package/react-messenger-customer-chat I have the same problem
Expected Behavior
The next page must work without any problem
To Reproduce
Navigate to pages without refreshing the app
Beta Was this translation helpful? Give feedback.
All reactions