Seemingly invalid errors when using `styled('div')`
See original GitHub issueCurrent Behavior
Cannot call `styled` because: Either string [1] is incompatible with `React.ComponentType` [2] in type argument `Base`. Or string [1] is incompatible with `React.ComponentType` [3] in type argument `Base`.Flow(InferError)
Expected Behavior
no error
Your Environment
Tech | Version |
---|---|
Base UI | v8.4.0 |
React | v16.8.2 |
browser | Chrome |
- I have searched the issues of this repository and believe that this is not a duplicate.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
error when using styled-components in imported ... - GitHub
This is in the context of a NextJS app that reaches into another directory outside of the app and pulls all of the...
Read more >Using Styled-components gives Invalid Hooks Call error and ...
I think the styled component is a react hook and you use it in a nonfunctional component so move your SidebarContainer to the...
Read more >Benefits of using styled-components in React - LogRocket Blog
styled -components lets you write actual CSS to style React components. Learn the benefits of this CSS-in-JS styling framework.
Read more >FAQs - styled-components
If you think that the issue is in duplicated styled-components module somewhere in your dependencies, there are several ways to check this. You...
Read more >Styling - Base Web
Styling. Base Web provides a variety of tools for styling your application. The intention of this guide is to give you an overview...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I can. Also, are you busy today for a chat? I had some ideas on how we can better detect and prevent these types of issues in the future.
sounds great, thanks!