TypeError: Cannot read properties of undefined
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- typescript
- 領域
- frontend
調査の方向性
The two reports point at src/sub-blocks/LayoutItem/LayoutItem.tsx (around line 18, reading links) and src/blocks/Icons/Icons.tsx (around line 43, reading map), both from older commits. Start by checking how those components receive block data and where a missing field could be undefined, then try to reproduce by removing fields from a page JSON. Done means either a guard that prevents the crash with a test covering the missing-field case, or a clear note that the bug no longer reproduces on the current code.
索引モデルが issue の本文から書いたものです。
説明
Hello! I caught two errors with undefined block properties. TypeError: Cannot read properties of undefined (reading 'links')\n in https://github.com/gravity-ui/page-constructor/blob/baa0f3d337551a143eae7483f768a215b29c9e5c/src/sub-blocks/LayoutItem/LayoutItem.tsx#L18 and TypeError: Cannot read properties of undefined (reading 'map')\n in https://github.com/gravity-ui/page-constructor/blob/80f3cfa96818336e6acbb00f5e69590d9672fe12/src/blocks/Icons/Icons.tsx#L43
I don't know how to reproduce these errors because I found them in the logs. But this can be reproduced by editing the contents of the page-constructor component.
- 主要言語
- TypeScript
- スター
- 65
- フォーク
- 27
- 平均マージ
- 5日 15分
- マージ済み PR(30日)
- 15
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
gravity-ui/page-constructor のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
gravity-ui/page-constructor#1542 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 40/100
gravity-ui/page-constructor#1504 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
gravity-ui/page-constructor#1466 ·
メンテナーはふだん 1 日以内に返信
-
Yfm styles specificyオープンgood first issue
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
gravity-ui/page-constructor#1389 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Vite playgroundオープンhelp wanted
難易度 3/5 1〜2日 初心者へのやさしさ 30/100
gravity-ui/page-constructor#1388 ·
メンテナーはふだん 1 日以内に返信
gravity-ui/page-constructor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
software-mansion/argent#1946 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
podman-desktop/podman-desktop#20216 ·
メンテナーはふだん 1 日以内に返信
-
[Type] Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
WordPress/ai#1386 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
omdsh-dev/DSH-better-sidebar#1205 ·
メンテナーはふだん 3 日以内に返信