-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
TS2769: No overload matches this call - emotion@11, emotion@10 #1908
Comments
There's a similar issue #1640, but it's quite old and related to rebass |
You must often type your object styles as This is related to TS' "type widening" and you can read more about it here, here and here. |
@Andarist , good to know, thanks for a quick reply! |
Is there any way to make this work with this?
I keep getting this interpolation error on typescript whether I add CSSObject type or not. |
Same problem. Pretty obscure error. Is there any solution? I tried to look for an exported CSS type under |
According to docs, it should be possible to style components with objects and functions -
v10, v11
E.g.:
But I'm getting the error at
styled("p")(base, padding, background)
:Environment:
v11:
v10:
To reproduce:
Here's a sandbox for v11.
https://codesandbox.io/s/emotion11-ts2769-h0t4v
The issue is the same for v10.
The text was updated successfully, but these errors were encountered: