-
Notifications
You must be signed in to change notification settings - Fork 18
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
Property 'children' is incompatible with index signature TS Error #101
Comments
The bug appears to go away if you add the |
@roginfarrer thanks for taking a look at this so quickly. Sure enough, just adding |
It's a bug within rainbow sprinkles |
I've looked into this a little bit, but I'm not 100% sure how to solve it 🤔 . Would love some help on this one. |
I think I may have fixed this issue. @richbachman can you try installing this version and see if it fixes it for you?
|
Went ahead and merged it since I'm pretty confident it fixes the issue in my testing. Will release in a patch shortly. |
@roginfarrer Apologies for falling off the radar on this one. Work has been busy and my brain is playing catch up. Thanks for looking into this. I'll take a look. |
Description
I'm not sure if this is a bug or not but figured I'd post an issue here. I'm running into a TS error when trying to create a Button component from Box. It only seems to happen if I add
colorProperties
to thecreateRainbowSprinkles
function. You can see the CodeSandbox here: https://codesandbox.io/s/musing-antonelli-nh703c?file=/components/Box.css.ts:2421-2464Expected Behaviour
I should be able to add
colorProperties
to thecreateRainbowSprinkles
function.Actual Behaviour
The TS error is
Property 'children' is incompatible with index signature.
You can see that on Button: https://codesandbox.io/s/musing-antonelli-nh703c?file=/components/Button.tsxAffected Version
0.15.1
Steps to Reproduce
I've shared the CodeSandbox. You can remove the TS error by commenting out this line: https://codesandbox.io/s/musing-antonelli-nh703c?file=/components/Box.css.ts:2755-2773
Checklist
The text was updated successfully, but these errors were encountered: