gatsby: Clicking on a links when using the Twitter plugin is causing white screen (and console error)

If you go to https://next.gatsbyjs.org/blog/2018-09-14-gatsby-v2/ and then click on the link with the text “Several core Gatsby contributors and I started a company”, the screen goes white and this error appears in the console:

Uncaught (in promise) DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node.

This issue suggests it’s due to an uncaught exception in our code https://github.com/facebook/react/issues/6895#issuecomment-281405036

quite possibly here: https://github.com/gatsbyjs/gatsby/blob/882d1a721cbaf0ed6dcc10c99d399858ec75d7ae/packages/gatsby/cache-dir/navigation.js#L89

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 19 (15 by maintainers)

Most upvoted comments

cc @stefanprobst @helmutgranda I’ve rewritten the Twitter plugin to fix this! See #8191

Sounds good! Just thought I would share the extra findings.