github icon indicating copy to clipboard operation
github copied to clipboard

Uncaught ReferenceError: GitHub is not defined

Open discopatrick opened this issue 8 years ago • 4 comments

Source code - "test.html":

<html>

<head>
    <script src="https://unpkg.com/[email protected]/dist/GitHub.bundle.min.js"></script>
    <script type="text/javascript">
        var gh = new GitHub();
    </script>
</head>

<body></body>

</html>

Chrome console output:

base64.js:89Uncaught SyntaxError: Invalid regular expression: /[À-ß][€-¿]|[à-ï][€-¿]{2}|[ð-÷][€-¿]{3}/: Range out of order in character class
    at new RegExp (<anonymous>)
    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

discopatrick avatar Feb 22 '17 15:02 discopatrick

Same here.. No comment for 5 days?

assafbahat avatar Feb 27 '17 10:02 assafbahat

Same here. Any clue?

dalareo avatar Jul 18 '17 20:07 dalareo

No response. I have same problem. Seems like they do not care.

glillibridge avatar Jan 15 '18 21:01 glillibridge

It's not that we don't care but the project doesn't have many active contributors (perhaps 1 at the moment). So, if you want to see this fixed, your best bet is to submit a PR yourself.

AurelioDeRosa avatar Jan 15 '18 21:01 AurelioDeRosa