Closed t-botz closed 2 years ago
Hi @t-botz,
Thanks for trying out our Cloudflare SDK. Webpack should automatically load the polyfills necessary for the Node dependencies. Can you compare your configuration to this template? See our Cloudflare integration documentation for more information.
More long term, we plan on updating our Cloudflare SDK to not have any transitive Node package dependencies. However, as this update isn't currently available, today we need to work around this problem with polyfills.
Cheers, @bwoskow-ld
@bwoskow-ld, do you know if the worker template is compatible with the latest version of wrangler
? The steps outlined here appear to be outdated:
Hi @dannyrb, my colleague @ldhenry responded to your other issue regarding wrangler
compatibility. Take a look at his response.
Yes thanks, its working 🙂
"edge-sdk" imply to me that you can run this lib on the edge, which means, no
node
dependencies... When running on Cloudflare workers this lib fails to a fair amount of dependencies tocrypto
andos