Skip to content
This repository has been archived by the owner on Nov 28, 2024. It is now read-only.

Error: Node with id=... doesn't exist in the tree. #886

Closed
sentry-io bot opened this issue Oct 28, 2024 · 2 comments · Fixed by #887
Closed

Error: Node with id=... doesn't exist in the tree. #886

sentry-io bot opened this issue Oct 28, 2024 · 2 comments · Fixed by #887
Assignees
Labels
bug 🪲 Something isn't working v2.21.2

Comments

@sentry-io
Copy link

sentry-io bot commented Oct 28, 2024

This is a bug we observed many times with users on Safari.

Sentry Issue: GRAASP-PLAYER-GB

React ErrorBoundary Error: Node with id=14b0089f-40e9-4fb9-92b1-ef64e2d18107 doesn't exist in the tree.
  at None (/assets/index-Dw4ZcfGx.js:587:20211)
  at None (/assets/index-Dw4ZcfGx.js:104:39944)
  at None (/assets/index-Dw4ZcfGx.js:104:72460)
  at ny (/assets/index-Dw4ZcfGx.js:77:2853)
  at Rz (/assets/index-Dw4ZcfGx.js:587:29276)
...
(37 additional frame(s) were not displayed)

Error: Node with id=14b0089f-40e9-4fb9-92b1-ef64e2d18107 doesn't exist in the tree.
  at jt (/assets/index-Dw4ZcfGx.js:587:5246)
  at fr (/assets/index-Dw4ZcfGx.js:587:1867)
  at None (/assets/index-Dw4ZcfGx.js:587:17427)
  at OT (/assets/index-Dw4ZcfGx.js:40:24284)
  at Fu (/assets/index-Dw4ZcfGx.js:40:42411)
...
(5 additional frame(s) were not displayed)
@sentry-io sentry-io bot added the bug 🪲 Something isn't working label Oct 28, 2024
@swouf swouf self-assigned this Oct 28, 2024
@spaenleh
Copy link
Member

This error originates from the ReactAccessibleTree component which keeps an inner state and when we navigate to a different hierarchy just throws an error because the new nodes are not in it's state anymore... It is really annoying to work with. We have added an ErrorBoundary, but it looks like the boundary does not apply correctly to users running on Safari.

We should remove the reactaccessibletree component and use a simpler component made ourselves.

@spaenleh
Copy link
Member

After some investigation, the links that are cause the issue are links that have only the :rootId part of the url, everything works fine when using the player.graasp.org/:rootId/:itemId link.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🪲 Something isn't working v2.21.2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants