codler / bullhorn-api

https://www.npmjs.com/package/bullhorn-api
2 stars 1 forks source link

Working with ES6 Imports? #2

Open bnbon opened 4 years ago

bnbon commented 4 years ago

Hi,

I want to use this library with react-boilerplate; when I include the library, I get an error as fetch-register isn't installed, if I install it, I still get issues.

./node_modules/bullhorn-api/dist/index.js 3:24-31Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

import Bullhorn from 'bullhorn-api';

 const bullhorn = new Bullhorn({
  client_id: 'x,
  client_secret: 'x',
  username: 'x',
  password: ' x,
 });