Cloudflare Workers and FaunaDB

Hi, I wanna use FaunaDB in Cloudflare Workers. I’m getting this error only when using Cloudflare Workers:

TypeError: Cannot read property 'custom' of undefined
    at Object.<anonymous> (worker.js:1:27123)
    at n (worker.js:1:110)
    at Object.<anonymous> (worker.js:1:5589)
    at n (worker.js:1:110)
    at Object.<anonymous> (worker.js:1:34737)
    at n (worker.js:1:110)
    at Object.<anonymous> (worker.js:6:10830)
    at n (worker.js:1:110)
    at Object.<anonymous> (worker.js:1:34594)
    at n (worker.js:1:110) at line 0, col 27121

Here is the repo: GitHub - YamiteruXYZ/cloudflare-workers-faunadb

Can someone please help me? Thank you.

I’d suggest asking in the FaunaDB forum since you’re using their package.

I did, but also this error doesn’t show up when using any other serverless functions provider than Cloudflare Workers. So I think it should be here also.

Workers isn’t using Node, which is why it’s probably erroring out.