react-color icon indicating copy to clipboard operation
react-color copied to clipboard

Its instance type 'TwitterPicker' is not a valid JSX element

Open mMarcos208 opened this issue 3 years ago • 3 comments

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",

mMarcos208 avatar Mar 23 '23 15:03 mMarcos208

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",

ialexanderbrito avatar Oct 20 '23 16:10 ialexanderbrito

same issue here with same version of react (I'm using SketchPicker)

Dann1y avatar Oct 30 '23 12:10 Dann1y

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

ialexanderbrito avatar Oct 31 '23 00:10 ialexanderbrito