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?