bloomui / tokyo-free-white-react-admin-dashboard

Free React Typescript Admin Dashboard Template built with Material-UI
https://bloomui.com/product/tokyo-free-white-react-typescript-material-ui-admin-dashboard/
MIT License
305 stars 167 forks source link

Does not compile #10

Open nikunjy opened 2 years ago

nikunjy commented 2 years ago

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 commented 2 years ago

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"
  },