Next.js Discord

Discord Forum

NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of t

Unanswered
Northeast Congo Lion posted this in #help-forum
Open in Discord
Northeast Congo LionOP
I keep getting NotFoundError: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.
error while navigation or conditionally rendering the component the next version is 14.2.1

10 Replies

i find that after using nextjs dev server for some time i get this, just restarting it works for me (as no actual issue other then it confusing itself occurs)
Northeast Congo LionOP
@riský for me it's vere frequent whenever i save the change in a file then also this appers as a error
hmm thats sad, thats more frequent then me, but when i get it i have found no better solution
Northeast Congo LionOP
@riský will it happen in the production as well when built
no
at least i havent had any issues
and if you havent done anything with messing with the tree yourself (i doubt you are)
Northeast Congo LionOP
@riský does it happen if we have multiple nested route groups (2 to 3 more group inside this group)
in prod, unless your being very weird, this should not be an issue
and that is a normal case