Skip to content

[DevTools Bug]: Type '{}' is not assignable to type 'ReactNode' #24432

New issue

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

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

Already on GitHub? # to your account

Closed
lucasaugustsof opened this issue Apr 24, 2022 · 1 comment
Closed
Labels
Resolution: Support Redirect Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug

Comments

@lucasaugustsof
Copy link

Website or app

https://github.com/devnautas/happy-app

Repro steps

Creating a custom component with styled-components

image

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

dwdw

Error message (automated)

Type '{}' is not assignable to type 'ReactNode'.

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

@lucasaugustsof lucasaugustsof added Component: Developer Tools Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug Type: Bug labels Apr 24, 2022
@eps1lon
Copy link
Collaborator

eps1lon commented Apr 25, 2022

You probably have multiple versions of @types/react installed. See #24304 (comment) for more information on how to fix this.

If this doesn't help, please open a new issue in the DefinitelyTyped/DefinitelyTyped repository which hosts the types.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Resolution: Support Redirect Status: Unconfirmed A potential issue that we haven't yet confirmed as a bug
Projects
None yet
Development

No branches or pull requests

2 participants