github-tools / github-tools/github

Uncaught ReferenceError: GitHub is not defined

Open
#427 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3.8k
Forks
809
PR merge metrics
No merged PRs in 30d

Description

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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by loading test.html with the referenced GitHub.bundle.min.js in Chrome and trace the failure from base64.js:89 through Requestable.js, Gist.js, and GitHub.js. Check whether the bundle can initialize without the reported regular-expression error; done means GitHub is defined and the console no longer shows these errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.