nodejs-onesky-utils icon indicating copy to clipboard operation
nodejs-onesky-utils copied to clipboard

global is not defined?

Open ravianand1988 opened this issue 4 years ago • 0 comments

I have installed the package in an Angular project. when I have been adding the following method(always getting an error): image

import * as onesky from '@brainly/onesky-utils';

 options = {
    language: 'en',
    secret: 'xxx',
    apiKey: 'xxx',
    projectId: '323233',
    fileName: 'en.json'
  };

private download() {
    onesky.getFile(this.options).then((content) => {
      console.log(content);
    }).catch((error) => {
      console.log(error);
    });
  }

what could be possible fixes(belong new in nodejs)?

ravianand1988 avatar Apr 20 '20 13:04 ravianand1988