Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Uncaught TypeError: Cannot read property 'length' of undefined

未關閉
#2 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
25/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
javascript
領域
tooling

研究方向

從 lib/search.etch.js:117 的 Search.renderSearchField 開始,接著閱讀周圍的 render 流程,以及記錄下來的 toggle、backspace、confirm 和 move-down 指令。如果可以,請在 Windows 上的 Atom 1.46.0 中重現這個序列,並在相同的互動不再引發 TypeError 時,將 issue 視為完成。

由索引模型根據 Issue 內容生成。

描述

[Enter steps to reproduce:]

  1. ...
  2. ...

Atom: 1.46.0 x64
Electron: 4.2.7
OS: Microsoft Windows 10 Pro
Thrown From: github-source-code package 0.2.0

Stack Trace

Uncaught TypeError: Cannot read property 'length' of undefined

At C:\Users\iZhenius\.atom\packages\github-source-code\lib\search.etch.js:117

TypeError: Cannot read property 'length' of undefined
    at Search.renderSearchField (/packages/github-source-code/lib/search.etch.js:117:24)
    at Search.render (/packages/github-source-code/lib/search.etch.js:123:31)
    at updateSync (/packages/github-source-code/node_modules/etch/lib/component-helpers.js:107:34)
    at /packages/github-source-code/node_modules/etch/lib/component-helpers.js:72:7
    at DefaultScheduler.performUpdates (/packages/github-source-code/node_modules/etch/lib/default-scheduler.js:48:34)
Commands
     -1:08.6.0 github-source-code:toggle (atom-workspace.workspace.scrollbars-visible-always.theme-one-dark-syntax.theme-one-dark-ui)
     -0:54.5.0 core:backspace (input.hidden-input)
     -0:51.4.0 core:confirm (input.hidden-input)
     -0:48.3.0 core:move-down (input.hidden-input)
  2x -0:47.9.0 core:confirm (input.hidden-input)
  2x -0:47.3.0 core:move-down (input.hidden-input)
  3x -0:46.8.0 core:confirm (input.hidden-input)
  2x -0:42.6.0 github-source-code:toggle (input.hidden-input)
  3x -0:37.4.0 core:backspace (input.hidden-input)
  6x -0:33.4.0 core:confirm (input.hidden-input)
     -0:15.6.0 github-source-code:toggle (div.panels-item)
Non-Core Packages
atom-formatter-jsbeautify 1.1.2 
formatter 2.12.4 
github-source-code 0.2.0 
language-gitignore 0.3.0 
language-gradle 0.1.0 
language-groovy 0.7.0 
language-kotlin 0.5.0 
octophus 0.1.1 
主要語言
JavaScript
星號
0
分支
0
PR 合併指標
30 天內沒有已合併 PR

環境準備

這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

ericadamski/atom-github-source-code 的其他 Issue

查看 ericadamski/atom-github-source-code 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。