You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
styleq: <cssAtom> typeof undefined is not "string" or "null". #452
I recently updated from RSD 0.33 to 0.55 and started encountering this error.
Returning undefined for a property in an inline style function now causes this error. I believe these values were previously ignored / stripped by RSD.
Expected behavior
If this is an intentional change, I would expect the typescript types for this function to disallow undefined values.
Steps to reproduce
const styles = css.create({
gap: (gap?: number) => ({
rowGap: gap, // An undefined gap will result in styleq: rowGap-abcdef typeof undefined is not "string" or "null".
}),
})
Activity
bencripps commentedon Sep 1, 2026
It looks like this fix is still needed, but MR's were closed. I'm going to open a new PR to address this.
bencripps commentedon Sep 1, 2026
#517