amelioro / ameliorate

A tool for analyzing debatable problems effectively, collaboratively, and with an open mind.
https://ameliorate.app
MIT License
26 stars 10 forks source link

Cannot go through tutorial when it's translated via Google Translate #515

Closed keyserj closed 1 month ago

keyserj commented 1 month ago

Describe the bug

Cannot go through tutorial when it's translated via Google Translate

To Reproduce

  1. go to playground
  2. use Google Translate to switch to another language
  3. open the first tutorial, step through and click "next tutorial" at the end
  4. click "next step" button on the first step of the second tutorial
  5. observe page error (console 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.")

Expected behavior

no error, moves to next step in tutorial.

Additional context

Apparently this can happen in React if the user is using certain Chrome extensions, and neither Google nor React have fixed it, but there's this "workaround" which at least doesn't throw an error but seems like it might not fix the placement of DOM nodes https://github.com/facebook/react/issues/11538#issuecomment-417504600. Can try it out and see if the fix works.

Technical ideas

No response