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

Require method DOES NOT work on Node 10 #56

Open
filetvignon opened this issue Jan 28, 2019 · 3 comments
Open

Require method DOES NOT work on Node 10 #56

filetvignon opened this issue Jan 28, 2019 · 3 comments

Comments

@filetvignon
Copy link

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
@kwelch
Copy link
Contributor

kwelch commented Jan 29, 2019

That appears to be consistent with what I was seeing in CodeSandbox.

I am thinking it is related to this line in our build out.
https://travis-ci.org/eventbrite/eventbrite-sdk-javascript/jobs/486018848#L570

A PR to fix this would be appreciated!

@SuragSheth
Copy link

I am having the same issue, please let me know if there are any fixes!

@loferris
Copy link

loferris commented Aug 30, 2019

I'm having the same issue and would love to know the progress on this! However, adding .default worked: https://stackoverflow.com/questions/54410860/cant-use-eventbrite-javascript-sdk-installed-via-npm-node-js

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

4 participants