question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Seemingly invalid errors when using `styled('div')`

See original GitHub issue

Current 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:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
vicapowcommented, Jul 11, 2019

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.

0reactions
gergelykecommented, Jul 11, 2019

sounds great, thanks!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found