I ran "yarn install" with no problems.
But when I ran "yarn build", i got the following error:
Code: Select all
TypeScript error in /home/fisher23/devel/serenity-react-ts/src/App.tsx(417,14):
'Tooltip' cannot be used as a JSX component.
Its instance type 'Tooltip' 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("/home/fisher23/devel/serenity-react-ts/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'. TS2786
415 | return (
416 | <div className={wrapperClass} onClick={onWrapperClick}>
> 417 | <Tooltip ref={copyTooltipRef} target=".block-action-copy" position="bottom" content="Copied to clipboard" event="focus" />
| ^
418 |
419 | <div ref={sidebar} className={sidebarClassName} onClick={onSidebarClick}
420 | onMouseEnter={onSidebarMouseEnter} onMouseLeave={onSidebarMouseLeave}>
Thanks,
John