https://www.growthbook.io/ logo
h

handsome-library-89124

06/16/2022, 11:15 AM
Copy code
Failed to compile.
 | 
 | ./components/Experiment/ExperimentGraph.tsx:127:18
 | Type error: This JSX tag's 'children' prop expects a single child of type 'ReactNode', but multiple children were provided.
 | 
 |   125 |             <div style={{ position: "relative" }}>
 |   126 |               {tooltipOpen && (
 | > 127 |                 <TooltipWithBounds
 |       |                  ^
 |   128 |                   left={tooltipLeft}
 |   129 |                   top={tooltipTop}
 |   130 |                   className={styles.tooltip}
error Command failed with exit code 1.
facing issue related to
type-check
This error came when I start creating build, dev env is working fine.
f

future-teacher-7046

06/16/2022, 1:52 PM
did you make changes to the code at all?
h

handsome-library-89124

06/16/2022, 1:52 PM
Yes
even I don't make changes still the error appear.
f

future-teacher-7046

06/16/2022, 1:53 PM
What OS are you using?
h

handsome-library-89124

06/16/2022, 1:53 PM
ubuntu
f

future-teacher-7046

06/16/2022, 1:56 PM
I know the latest code on the
main
branch compiles correctly on Ubuntu. Maybe your files became corrupted? I would try a fresh
git clone
and see if it still fails
h

handsome-library-89124

06/16/2022, 1:57 PM
yes with new clone its give error
are you using next.config.js
f

future-teacher-7046

06/16/2022, 1:58 PM
no
h

handsome-library-89124

06/16/2022, 1:58 PM
might be webpack 5 is giving error related to type checking
f

future-teacher-7046

06/16/2022, 1:59 PM
If you do
yarn tsc -v
what does it print?
h

handsome-library-89124

06/16/2022, 2:00 PM
Copy code
yarn run v1.22.18
$ /home/yasir/Documents/Turing/experimentation/node_modules/.bin/tsc -v
Version 4.3.5
Done in 0.33s.
👀