-
Notifications
You must be signed in to change notification settings - Fork 175
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
Cannot use FullFileBrowser component (Chonky v2.3.2 with React 18) #206
Comments
Workaround for this:
|
The workaround stated in the comment above works for the first issue mentioned For the second issue, it appears to be related to compatibility with React v18. |
Workaround for second issue:
|
@OrhanTozan thank you so much. I just had this same error. |
For the second issue, I used the following for better intellisense experience in vscode: import { FullFileBrowser as F, FileBrowserProps, FileBrowserHandle } from 'chonky';
const FullFileBrowser = F as React.MemoExoticComponent<React.ForwardRefExoticComponent<FileBrowserProps & React.RefAttributes<FileBrowserHandle>>>; |
This is my main.tsx file:
This is the error I am getting
Type FC<ChonkyIconProps> is not assignable to type ElementType<ChonkyIconProps> | undefined.
But I get this error:
These are my packages:
The text was updated successfully, but these errors were encountered: