Skip to content

Newbie question: Github is not defined #382

Closed

Description

@rmpestano

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.

Activity

  1. AurelioDeRosa commented on Sep 19, 2016

    @AurelioDeRosa
    Member

    The library exports GitHub, not Github.

  2. rmpestano commented on Sep 19, 2016

    @rmpestano
    Author

    👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions