-
-
Notifications
You must be signed in to change notification settings - Fork 184
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
Unable to clone and style existing components with Stitches using standard syntax #824
Comments
Thanks for the examples - I also replicated it in the stitches example. Looking at the generated code, it all looks okay and no different than what's generated for emotion/styled-components and both I've tested and don't cause that webpack error. Will have to look into this further. |
I've include the a full error dump below. Also here is a repo where the bug should be able to be replicated.
|
@ben-rogerson It does generate similar code to with emotion/styled-components, but this is also the problem - Stitches doesn't use the same syntax here, it doesn't support using It looks like you've already took note of this for the dot syntax: Line 35 in b1258e7
|
When trying to clone and style an existing twin/styled component, I am getting this error while using Next.js and Stitches.
To recreate, you can use the next-stitches-typescript project from twin.examples.
twin.examples/next-stitches-typescript/src/pages/index.tsx
Currently, a workaround is to use Stitches'
styled
import.Without much knowledge of the codebase, an oversimplified solution appears to be calling
handleStyledFunction
whentw(Component)
is called with Stitches.The text was updated successfully, but these errors were encountered: