sendgrid not working in pages
# pages-help
r
I am getting this error when I tried deploying this to cloudflare pages. It works well locally.

https://cdn.discordapp.com/attachments/1110158800868094012/1110158801593712721/image.png

j
Cloudflare workers are not node.js servers. They are what are called V8 isolates. This basically means they are Chrome JavaScript engines running in the cloud.They do not have access to native node.js APIs like past and file system. You'll need to find a library that does not use these native no genius APIs
PS Cloudflare has added
path
support recently. https://blog.cloudflare.com/workers-node-js-apis-stream-path/
r
Thanks. It is difficult to find packages that don't relied on node builtin apis
i
Sendgrid actually has an API that you can use (instead of the client).
I've done it before and it works well.
r
I am checking this out