-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Typescript: "react" has no exported member named 'ForwardedRef' #870
Comments
@ferreiratiago Hi.
|
@ferreiratiago Is this issue still relevant for you? |
I was able to reproduce this using @types/react and @types/react-dom ^16.14.0. Switching to ^17.0.0 fixes this, though might not be a good idea if you are not using react 17. I was not able to reproduce this in codesandbox, it does not seem to use tsc so it does not check types of node_modules dependencies probably. |
I'm experiencing this issue as well. Any update? |
Problem
Currently there's a problem with the exported function
ForwardedRef
on filescr/types.ts
.This problem was introduced on #782 (https://github.com/reactchartjs/react-chartjs-2/pull/782/files#diff-c54113cf61ec99691748a3890bfbeb00e10efb3f0a76f03a0fd9ec49072e410aR3).
This causes the Typescript compiler to fail with the following problems:
The text was updated successfully, but these errors were encountered: