Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

styleq: <cssAtom> typeof undefined is not "string" or "null".

オープン
#452 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

@bencripps がすでに取り組んでいます。

2026年9月1日 から。

  • #484 @adityasingh2400 による — マージされずにクローズ
  • #498 @adityasingh2400 による — マージされずにクローズ
  • #517 @bencripps による — オープン

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript, react, typescript
領域
frontend

調査の方向性

まず、css.create と gap の undefined 値を使って例を再現し、次に styleq エラーを発生させているインラインスタイルの処理を追跡します。インラインスタイル関数の TypeScript 型と、undefined のスタイル値に関する既存のテストを確認します。報告されたケースの動作が定義され、関連するテストまたは型にそれが反映されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

bug
Describe the issue

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".
  }),
})
Test case

No response

Additional comments

No response

主要言語
JavaScript
スター
3.6k
フォーク
208
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

react/react-strict-dom のほかの issue

react/react-strict-dom の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。