exited with code: null and signal: SIGTERM

I am trying to fix this issue since like couple days now and still havent found the solution works good locally but when trying to deploy using cloudflare it just gives error, using NextJS btw

21:29:50.953 ▲ Compiler server unexpectedly exited with code: null and signal: SIGTERM
21:29:55.434 ▲ Failed to compile.
21:29:55.435 ./node_modules/mongodb/lib/client-side-encryption/crypto_callbacks.js:4:15
21:29:55.435 ▲ Module not found: Can't resolve 'crypto'
21:29:55.435
21:29:55.435 https://nextjs.org/docs/messages/module-not-found
Was this page helpful?