github-tools / github-tools/github

Uncaught ReferenceError: GitHub is not defined

未關閉
#427 4 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
3.8k
分支
809
PR 合併指標
30 天內沒有已合併 PR

描述

Source code - "test.html":

```



var gh = new GitHub();

```

Chrome console output:

```
base64.js:89Uncaught SyntaxError: Invalid regular expression: /[À-ß][€-¿]|[à-ï][€-¿]{2}|[ð-÷][€-¿]{3}/: Range out of order in character class
at new RegExp ()
at base64.js:89
at Object.n.44.buffer (base64.js:194)
at o (_prelude.js:1)
at _prelude.js:1
at Object.n.9.axios (Requestable.js:10)
at o (_prelude.js:1)
at _prelude.js:1
at Object.n.1../Requestable (Gist.js:8)
at o (_prelude.js:1)
(anonymous) @ base64.js:89
n.44.buffer @ base64.js:194
o @ _prelude.js:1
(anonymous) @ _prelude.js:1
n.9.axios @ Requestable.js:10
o @ _prelude.js:1
(anonymous) @ _prelude.js:1
n.1../Requestable @ Gist.js:8
o @ _prelude.js:1
(anonymous) @ _prelude.js:1
n.2../Gist @ GitHub.js:9
o @ _prelude.js:1
e @ _prelude.js:1
(anonymous) @ _prelude.js:1
(anonymous) @ _prelude.js:1
(anonymous) @ _prelude.js:1
test.html:6 Uncaught ReferenceError: GitHub is not defined
at test.html:6
(anonymous) @ test.html:6
```

EDITED TO ADD: Chrome Version 56.0.2924.87 (64-bit), OSX El Capitan 10.11.6

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

首先,在 Chrome 中載入引用了 GitHub.bundle.min.js 的 test.html,並從 base64.js:89 開始,經過 Requestable.js、Gist.js 和 GitHub.js 追蹤故障。檢查 bundle 是否可以在不出現所回報的正規表示式錯誤的情況下初始化;當 GitHub 已定義且主控台不再顯示這些錯誤時,即表示完成。

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

評估

技術堆疊
javascript
領域
api, frontend
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
描述清楚
新手友好度
35/100

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

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