Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mMarcos208 opened this issue Mar 23, 2023 · 3 comments
Open

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

mMarcos208 opened this issue Mar 23, 2023 · 3 comments

Comments

@mMarcos208
Copy link

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",
@ialexanderbrito
Copy link

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

@Dann1y
Copy link

Dann1y commented Oct 30, 2023

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

@ialexanderbrito
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants