Its instance type 'TwitterPicker' is not a valid JSX element
mMarcos208 opened this issue · comments
Marconi Marcos Barroso commented
After upgrade react "@types/react": "^17.0.0" to "@types/react": "^18.0.28", this error show me.
<TwitterPicker
width="100"
colors={colors}
triangle="hide"
color={areaExtrato.cor}
onChangeComplete={handleColor}
/>
"react-color": "^2.19.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Alexander commented
I'm facing this same problem when I update to these versions.
"react-color": "^2.19.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
devDependencies
"@types/react": "^18.2.31",
"@types/react-color": "^3.0.9",
"@types/react-dom": "^18.2.14",
Danny(이대훈) commented
same issue here with same version of react
(I'm using SketchPicker)