Skip to content

Require method DOES NOT work on Node 10 #56

@filetvignon

Description

@filetvignon

The method described in the Docs to use this sdk in Node DOES NOT WORK, at least not in Node 10.15 with npm 6.6:

const eventbrite = require('eventbrite');

// Create configured Eventbrite SDK
const sdk = eventbrite({token: 'OATH_TOKEN_HERE'});

This yields a "eventbrite is not a function" error.
Here's the workaround:

const eventbrite = require('eventbrite').default;

Your Environment

  • SDK version: 1.1.0
  • Node version: 10.15.0
  • NPM version: 6.6.0
  • Operating system: Windows 10

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