sst / ion

SST v3
https://sst.dev
MIT License
1.83k stars 220 forks source link

Cloudflare worker Discrepancy vs Wrangler #662

Open dgocoder opened 2 months ago

dgocoder commented 2 months ago

Trying to use stripe with cloudflare with sst ion, and getting into issues with it not being deployable with ion but is with wrangler. It complains about qs which is a dependency and the node:util being dynamically imported.

Below is the repo stripe provides which I have validated works: https://github.com/stripe-samples/stripe-node-cloudflare-worker-template?tab=readme-ov-file

using similar setup in ion gives me the error attached in image.

I've created a simple repo that can reproduce the error: https://github.com/dgocoder/sstbug/tree/main

Would like to use ion but seems there are some discrepancies here? Any help would be appreciated.

image
amlcodes commented 5 days ago

ran into this as well recently.