I'm using Material-UI with typescript, I've installed the typescript types with
npm install -D @types/material-ui.
When my webpage loads now I get the following errors:
ERROR in [at-loader] ./node_modules/@types/material-ui/index.d.ts:1235:26 TS2430: Interface 'MenuItemProps' incorrectly extends interface 'ListItemProps'. Types of property 'label' are incompatible. Type 'ReactNode' is not assignable to type 'string | undefined'. Type 'null' is not assignable to type 'string | undefined'.
ERROR in [at-loader] ./node_modules/@types/material-ui/index.d.ts:1491:69 TS2694: Namespace 'React' has no exported member 'InputHTMLAttributes'.
There are absolutely no other changes to my project besides the addition of material-ui to node_modules which isn't even imported, the issue is likely coming from its types import.
So I came up with a very hacky solution where I added "noImplicityAny":false to my tsconfig.json. This does not actually fix the issue though and I would appreciate a proper fix.