Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with React v 18 #194

Open
dotnotguy opened this issue Dec 15, 2022 · 4 comments
Open

Issues with React v 18 #194

dotnotguy opened this issue Dec 15, 2022 · 4 comments
Assignees

Comments

@dotnotguy
Copy link

Tried to install this on a React v18 project and it doesn't work. Is there an updated version of this? I'm looking for a TreeView nav for my app that will get the data from an WebAPI in JSON format and liked how this looked, but can't get it working

@lukasbach
Copy link
Owner

Hi,

RCT is already updated to react 18. Can you share details about the error you're getting?

@dotnotguy
Copy link
Author

It wouldn't install to I had t to use the --force parameter, then got a conflicting react version when running my app with it on a component.

@lukasbach
Copy link
Owner

This is hard to look into without more details since there could be many other libraries whose transitive dependencies might cause the conflict. Can you share the error log that caused the conflict issue and the lock file (yarn.lock or npm lock file)?

@dotnotguy
Copy link
Author

dotnotguy commented Dec 19, 2022

This morning, the install worked, however, I get a few errors when trying to run one of the examples:
error reads: [ when running f12]
'cannot read properties of null value (reading 'useState')
at 'uncontrolledTreeEnironment.js:70:1

there are several more

I downloaded the example data.js file and that kicks out some errors as well. I'm using React with .JS not .TS extensions.
Not sure if that makes a difference or not. The data.js file kicks out an error such as 'token expected' on line 9
(value as object) : undefined,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants