Next.js Discord

Discord Forum

NotFoundError: Failed to execute 'removeChild' on 'Node'

Answered
American Wirehair posted this in #help-forum
Open in Discord
American WirehairOP
this error has been killing for few days.

ui shows up for few seconds then this error shows up on screen

i have linked the code pls help how do i fix this
link to code
https://yaso.su/TLXd4rxb
Answered by American Wirehair
fixed it by removing html and body tags from layout of this route
View full answer

5 Replies

American WirehairOP
i am using next 14.2.3
American WirehairOP
anyone?
@American Wirehair this error has been killing for few days. ui shows up for few seconds then this error shows up on screen i have linked the code pls help how do i fix this link to code https://yaso.su/TLXd4rxb
wild guess, try this:
{expiredUsers.length > 0 ? (
  <Table className='mt-4'>
    ...
  </Table>
) : null}

(instead of "" in the <=0 branch, use null)
American WirehairOP
same problem
American WirehairOP
fixed it by removing html and body tags from layout of this route
Answer