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

Incompatibility with ChartProps['ref'] #765

Open
WilliamKelley opened this issue Jul 8, 2024 · 0 comments
Open

Incompatibility with ChartProps['ref'] #765

WilliamKelley opened this issue Jul 8, 2024 · 0 comments

Comments

@WilliamKelley
Copy link
Contributor

Not sure what's going wrong here yet

Type '{ children: Element; string?: string | number | undefined; className?: string | undefined; color?: string | undefined; id?: string | undefined; lang?: string | undefined; max?: string | ... 1 more ... | undefined; ... 466 more ...; height: number; }' is not assignable to type 'RefAttributes<ChartElement>'.
  Types of property 'ref' are incompatible.
    Type 'LegacyRef<ChartElement> | undefined' is not assignable to type 'Ref<ChartElement> | undefined'.
      Type 'string' is not assignable to type 'Ref<ChartElement> | undefined'.ts(2322)
(alias) const Chart: React.ForwardRefExoticComponent<Omit<ChartProps, "ref"> & React.RefAttributes<ChartElement>>
import Chart
Screenshot 2024-07-08 at 1 09 58 PM
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

1 participant