Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Newbie question: Github is not defined #382

Closed
rmpestano opened this issue Sep 18, 2016 · 2 comments
Closed

Newbie question: Github is not defined #382

rmpestano opened this issue Sep 18, 2016 · 2 comments

Comments

@rmpestano
Copy link

Hi,

I'm getting

Uncaught ReferenceError: Github is not defined

here is what I'm trying:

<head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <link rel="stylesheet" type="text/css" media="screen" href="stylesheets/stylesheet.css">
    <script src="https://unpkg.com/github-api/dist/GitHub.bundle.min.js"></script>
    <title>Database Rider</title>
</head>


<script type="text/javascript">
    var github = new Github({ //<---------- error is here
        token: 'my gh user token'
    });

</script>

What am I missing?

Thanks in advance.

@AurelioDeRosa
Copy link
Member

The library exports GitHub, not Github.

@rmpestano
Copy link
Author

rmpestano commented Sep 19, 2016

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants