I am facing a problem when append or delete component "Failed to execute 'insertBefore' on 'Node'"

System Information
  • Strapi Version: 3.6.8
  • Operating System: Ubuntu 20.04.3 LTS
  • Database: PostgresSql
  • Node Version: v12.18.2
  • NPM Version: 6.14.5
  • Yarn Version:

I sometimes face an error “Something went wrong.”

Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
Error: Failed to execute 'insertBefore' on 'Node': The node before which the new node is to be inserted is not a child of this node.
    at Ri (http://localhost:3000/admin/main.809827c9.chunk.js:122550:93)
    at Ri (http://localhost:3000/admin/main.809827c9.chunk.js:122550:168)
    at Pi (http://localhost:3000/admin/main.809827c9.chunk.js:122548:129)
    at Sj (http://localhost:3000/admin/main.809827c9.chunk.js:122583:383)
    at push.exports.unstable_runWithPriority (http://localhost:3000/admin/main.809827c9.chunk.js:122661:467)
    at cg (http://localhost:3000/admin/main.809827c9.chunk.js:122453:325)
    at Jj (http://localhost:3000/admin/main.809827c9.chunk.js:122579:370)
    at yj (http://localhost:3000/admin/main.809827c9.chunk.js:122570:376)
    at http://localhost:3000/admin/main.809827c9.chunk.js:122454:115
    at push.exports.unstable_runWithPriority (http://localhost:3000/admin/main.809827c9.chunk.js:122661:467)

this usually happens in two situations:

the first when i adding a new field of type component after i choose filed component i select name, category, and icon then click on Configure the component it redirects me to this error page like detailed above (image below)

the second situation is when i am editing a single type content like a homepage which contains multiple components if i deleting or reset an entry it saves successfully then redirect to this error page

Here is the whole redirect link

http://localhost:3000/admin/plugins/content-type-builder/content-types/application::homepage.homepage?modalType=attribute&actionType=create&settingType=base&forTarget=contentType&targetUid=application::homepage.homepage&attributeType=component&step=2&header_label_1=Homepage&header_icon_name_1=component&header_icon_isCustom_1=false

i am wondering if i do something wrong to avoid ?!

I have this same problem