Material-ui: Property ... does not exists on type error

Created on 24 May 2018  路  2Comments  路  Source: mui-org/material-ui

Just updated to the newest stable version 1.0 and got many errors. Of them is "Property 'value' does not exist on type 'IntrinsicAttributes & MenuItemProps....."

Another is Property 'onClick' does not exist on type 'IntrinsicAttributes & MenuItemProps & { children?: ReactNode; }'

TypeScript 2.4.2

Please help

question

Most helpful comment

Hi, i have upgraded to TypeScript 2.8.3 and get this error:

error TS2322: Type '(theme: Theme) => { root: { padding: number; }; }' is not assignable to type 'Record'.
Index signature is missing in type '(theme: Theme) => { root: { padding: number; }; }'.

How may i fix it? Thanks

All 2 comments

We only support TypeScript > 2.8

Hi, i have upgraded to TypeScript 2.8.3 and get this error:

error TS2322: Type '(theme: Theme) => { root: { padding: number; }; }' is not assignable to type 'Record'.
Index signature is missing in type '(theme: Theme) => { root: { padding: number; }; }'.

How may i fix it? Thanks

Was this page helpful?
0 / 5 - 0 ratings