viral-sangani / Polymarket-clone

Polymarket clone made using Solidity, NextJS and IPFS.
24 stars 26 forks source link

npm run build ERROR #1

Open FuFuGang opened 2 years ago

FuFuGang commented 2 years ago

Failed to compile.

./components/Filter.tsx:48:39 Type error: Type '{ children: ({ active }: ItemRenderPropArg) => Element; key: string; onClick: () => void; }' is not assignable to type 'IntrinsicAttributes & (Props<ExoticComponent<{ children?: ReactNode; }>, ItemRenderPropArg, MenuItemPropsWeControl> & { ...; })'. Property 'onClick' does not exist on type 'IntrinsicAttributes & (Props<ExoticComponent<{ children?: ReactNode; }>, ItemRenderPropArg, MenuItemPropsWeControl> & { ...; })'.

46 |

47 | {list.map((item) => (

48 | <Menu.Item key={item} onClick = {() => onChange(item)}> | ^ 49 | {({ active }) => { 50 | return ( 51 | <button

PoCk3T-SPAI commented 1 year ago

Running into the same issue, @viral-sangani how did you get to compile this project for the purpose of your tutorial?