superplate icon indicating copy to clipboard operation
superplate copied to clipboard

Type Error on Project Build

Open burhanahmed92 opened this issue 3 years ago • 1 comments

Its showing me this error after i run build command on fresh setup

Type error: 'Component' cannot be used as a JSX component. Its element type 'ReactElement<any, any> | Component<{}, any, any> | null' is not a valid JSX element. Type 'Component<{}, any, any>' is not assignable to type 'Element | ElementClass | null'. Type 'Component<{}, any, any>' is not assignable to type 'ElementClass'. The types returned by 'render()' are incompatible between these types. Type 'React.ReactNode' is not assignable to type 'import("/Users/apple/Desktop/SoftwareAlliance/React/example/superplate/node_modules/react-bootstrap/node_modules/@types/react/index").ReactNode'. Type '{}' is not assignable to type 'ReactNode'.

burhanahmed92 avatar May 31 '22 07:05 burhanahmed92

Hey @burhanahmed92 , Could you share your node and npm versions?

omeraplak avatar May 31 '22 14:05 omeraplak

@omeraplak hey! having same issue node v18.7.0 yarn v1.22.19

nur8sultan avatar Aug 21 '22 17:08 nur8sultan

Hey @nur8sultan , we fixed this bug. Thanks a lot for your help! 💥

omeraplak avatar Aug 31 '22 05:08 omeraplak