Issues with MailGun

I'm attempting to add MailGun as my email provider, but running into some issues - whenever I attempt to use mailgun, I get a dependency error from ts-mailgun:
Uncaught TypeError: Cannot read properties of undefined (reading '__agent_base_https_request_patched__')
    at ../../../node_modules/proxy-agent/node_modules/agent-base/patch-core.js (ts-mailgun.js?v=6165f70e:822:23)

I investigated this and whilst there's little info online, I did find this on stackoverflow which says that version 0.5 (the version of wasp) has the issue, and 0.18 fixes it - https://stackoverflow.com/questions/50906419/cannot-read-property-validate-of-undefined-in-mailgun-js
I am using wasp v0.13.2
Stack Overflow
I am using mailgun-js to validate emails. I'm implementing the same way as described in the documentation mailgun-js documentation.
my code :

var domain = 'postmaster.xxxx.in';
var api_key = 'pub...
Was this page helpful?