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

Does not compile #10

Open
nikunjy opened this issue Jun 7, 2022 · 1 comment
Open

Does not compile #10

nikunjy opened this issue Jun 7, 2022 · 1 comment

Comments

@nikunjy
Copy link

nikunjy commented Jun 7, 2022

On commit 7537cfb92128df82e26d14197bfdd87f8b72a0e6

Using node v14.17.4

TS2786: 'Chart' cannot be used as a JSX component.
  Its instance type 'ReactApexChart' is not a valid JSX element.
    The types returned by 'render()' are incompatible between these types.
      Type 'React.ReactNode' is not assignable to type 'import("/Users/nikunj/git/tokyo-free-white-react-admin-dashboard/node_modules/@types/react-transition-group/node_modules/@types/react/index").ReactNode'.
@aeciorc
Copy link

aeciorc commented Jul 27, 2022

This is caused by dependencies that pull the latest version of types/react. Add this to your package.json at the top level

 "resolutions": {
    "@types/react": "^17.0.38"
  },

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