react-color
react-color copied to clipboard
Its instance type 'TwitterPicker' is not a valid JSX element
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",
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",
same issue here with same version of react (I'm using SketchPicker)
same issue here with same version of react (I'm using SketchPicker)
@Dann1y I managed to solve it by deleting package-lock and yarn.lock and installing everything again