Template atlantis-react-7.0.1 doesn't build (Typescript)

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
ReactHopStack
Posts: 2
Joined: 25 Aug 2022, 17:45

30 Aug 2022, 13:30

Unable to start template in typescript for atlantis-react-7.0.1.
After command :

Code: Select all

$ yarn install 
$ yarn start 
A lot of error appear:

Code: Select all

TypeScript error in /home/user/project/atlantis/typescript/src/App.tsx(439,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/user/project/atlantis/typescript/node_modules/@types/react-router/node_modules/@types/react/index").ReactNode'.  TS2786

    437 |     return (
    438 |         <div className={layoutClassName} onClick={onDocumentClick}>
  > 439 |             <Tooltip ref={copyTooltipRef} target=".block-action-copy" position="bottom" content="Copied to clipboard" event="focus" />
        |              ^
    440 | 
    441 |             <div className="layout-main">
    442 |                 <AppTopbar items={menu} menuMode={menuMode} colorScheme={props.colorScheme} menuActive={menuActive}


error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Help :)

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

12 Sep 2022, 11:18

Sorry for the delayed response! We are currently trying to update all layouts and we'll release a new release this week. After the new version is released, it would be more accurate to try this case with it. Thanks a lot for your understanding!

Best Regards,

mert.sincan
Posts: 5281
Joined: 29 Jun 2013, 12:38

12 Sep 2022, 12:22

Also, for now, could you please try;
viewtopic.php?p=203460#p203460

Post Reply

Return to “Atlantis - PrimeReact”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests