I am trying to use node-mailjet package
And when i am importing as they show in their documentation, i end up with an error that blocks the production deployment
here are the import lines :
const mailjet = require("node-mailjet").connect(
settings.mailjet.apiPublicKey,
settings.mailjet.apiPrivateKey
);
When i do run my webpacks in order to generate my production version i do encounter this error :
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted
I am stuck with this
Thanks for your help