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

[BUG] - property length required when creating a component with styled #453

Closed
marcoripa96 opened this issue May 4, 2022 · 1 comment · Fixed by #434 or #465
Closed

[BUG] - property length required when creating a component with styled #453

marcoripa96 opened this issue May 4, 2022 · 1 comment · Fixed by #434 or #465
Labels
🐛 Type: Bug Something isn't working

Comments

@marcoripa96
Copy link

Describe the bug

I setup a clean nextjs typescript project, installed nextUI and imported styled to create a styled component following Stitches documentation.
For some reason the object which contains the styles requires a length property and typescript isn't happy.

Your Example Website or App

https://github.com/marcoripa96/next-nextui-trpc-starter

Steps to Reproduce the Bug or Issue

  1. Create a nextjs typescript from their documentation starter
  2. install nextUI
  3. import styled and create a component

Expected behavior

Styled object should not require any object specific properties like length.

Screenshots or Videos

image

Operating System Version

Windows

Browser

Chrome

@marcoripa96 marcoripa96 added the 🐛 Type: Bug Something isn't working label May 4, 2022
@jrgarciadev
Copy link
Member

Hey @marcoripa96 this issue has been reported before #291 , here's a workaround #291 (comment), we already fixed this but it's pending to be released

Hope it helps!

@jrgarciadev jrgarciadev linked a pull request May 5, 2022 that will close this issue
@jrgarciadev jrgarciadev linked a pull request May 9, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants