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

Component type error #55

Open
YeungKC opened this issue Apr 18, 2022 · 9 comments
Open

Component type error #55

YeungKC opened this issue Apr 18, 2022 · 9 comments

Comments

@YeungKC
Copy link

YeungKC commented Apr 18, 2022

image

I think it is TailwindComponent? but it is any.

@scott-lc
Copy link

To expound on this report, the specific error I am seeing that was introduced in version 2.1.7 is:

error TS7031: Binding element '$xxx' implicitly has an 'any' type.

or more specifically, tw is typed as any due to templateFunctionFactory being typed as any here.

@YeungKC
Copy link
Author

YeungKC commented Apr 19, 2022

I also found out later that this should not be changed to any, otherwise it would be anyscript.

@hylickipiotr
Copy link

@MathiasGilson Could you help with this issue?

@arminhupka
Copy link

Any option to fix it?

@azzlack
Copy link

azzlack commented Jun 13, 2022

I solved it by downgrading to 2.1.6

"resolutions": {
    "tailwind-styled-components": "2.1.6"
}

Note: resolutions only work with yarn, you have to use overrides with npm

@susyabashti
Copy link

Any fix planned on this issue?

@max-sym max-sym mentioned this issue Aug 16, 2022
@Pedromdsn
Copy link

Any solution?

@mateusfg7
Copy link

same for me

@MathiasGilson
Copy link
Owner

MathiasGilson commented Sep 6, 2022

Just published the version 2.2.0 that should address this issue

I've got a warning for excessively deep type instanciation though, and I'm not sure how to fix that
If some of you guys are typescript experts and could have a look at PR #71 it would be greatly appreciated!

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

9 participants