#The package "crypto" wasn't found on the file system but is built into node. Are you trying to bun

6 messages · Page 1 of 1 (latest)

desert kindle
#

Facing the following error when using cloudflare adapter
The package "crypto" wasn't found on the file system but is built into node. Are you trying to
bundle for node? You can use "platform: 'node'" to do that, which will remove this error.

misty badgeBOT
#

Hi @desert kindle. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Hmm, I don't know enough to give you a confident answer yet. The extracts provided do not contain information about the specific error you're encountering with the Cloudflare adapter and the "crypto" package.

However, you might find some help in the Astro documentation or the Astro community:

Remember to always keep your packages up-to-date and ensure that your environment meets the requirements of the Astro framework and its adapters.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@desert kindle kapa.ai is still learning and improving, please let us know how it did by reacting below

real trail
#

You're using a Node dependency on Cloudflare SSR, which does not run on Node

desert kindle
#

Yeah but Cloudflare has node-compat which should polyfill it I believe