I run the following locally in my machine (or in any of my remote servers) and I get no problem:

const JsSignatureProvider = require('eosjs/dist/eosjs-jssig').default;
const signature = new JsSignatureProvider([privKey]);

But when I run in firebase's cloud function I get:

JsSignatureProvider is not a constructor

What am I missing?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.