Next.js Discord

Discord Forum

Failed to execute 'removeChild' on 'Node'

Unanswered
Havana posted this in #help-forum
Open in Discord
HavanaOP
I'm getting an error on full build but never in dev (screenshot attached).

It doesn't happen on every page of my application, only on a few.

All of the previous posts here and a multitude of searching around Github, Reddit and SO seem to pin the blame on using fragments <></>

Can anyone explain why using Fragments would cause this error and why it would only occur on full build and not in development?

I'm going back through my code base and removing all fragments, but so far it's not made any impact on the affected pages.

1 Reply

HavanaOP
Update, I've been through and removed all fragments, it actually increased how frequently I got this error in build so it's definitely not only caused by fragments.