Closed nileshtrivedi closed 1 year ago
This happens even when I use the --node-compat
flag for Node compatibility with my wrangler command.
Having the same issue here 🙋♂️ @nileshtrivedi did you find a work-around or a different service ? In my current situation this makes Mailjet unusable for me.
@haydencleary I ended up keeping MailJet but switched to Netlify Functions instead of Cloudflare which is a very unique environment.
Ah right, fair enough! I can't change environments sadly. I have an a Shopify app deployed on their Oxygen architecture which is based on Cloudflare. Not much is compatible with their workers at the moment ... 🥲
Hi @nileshtrivedi sorry for the long response. Unfortunately, we are not going to support Cloudflare workers in the nearest versions. But you are always welcome to suggest your features/improvements by creating a pull request to the library.
I get the following error with
require('node-mailjet')
within a Cloudflare Worker:As you can see, it's loading
mailjet.web.js
and notmailjet.node.js
. This is probably because, as Cloudflare Docs say:It would be great to be able to use this library in Cloudflare Workers environment.