react-complex-tree icon indicating copy to clipboard operation
react-complex-tree copied to clipboard

TypeError: Cannont read properties of undefined ( reading 'tree-1')

Open EasyCanadianGamer opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug Well when I run the the sample code in my code, the UI is doesn't render.

To Reproduce Steps to reproduce the behavior (ideally a codesandbox link or similar if for a library issue): CodeSandbox

Expected behavior Its gives a white screen showing that the tree is not being displayed Screenshots If applicable, add screenshots to help explain your problem. A gif or screencast can also help understand your problem.

Also here is the screenshot of the errors I get from the console: image

This is without the Error Boundary tags from React: image

This is with the Error Boundary tags from React ( the something went wrong is where I want to put the tree like a code editor from vscode) : image

Additional context You can help by providing additional details that are available to you, such as

  • Windows using the Arc Browser ( uses the chromium engine)

EasyCanadianGamer avatar Jun 01 '24 21:06 EasyCanadianGamer

Hey, thanks for your report. I tried your sandbox link, but it looks like there is something wrong with the JS import, the main JS file doesn't run at all.

That said, can you try adding viewSate={{ "tree-1": {} }} as prop to the tree environment to see if that does something?

lukasbach avatar Jun 01 '24 21:06 lukasbach

Closing this for now, please let me know if the issue persists.

lukasbach avatar Aug 04 '24 23:08 lukasbach