expo-stripe-payments-with-supabase-functions icon indicating copy to clipboard operation
expo-stripe-payments-with-supabase-functions copied to clipboard

Stripe types not imported via esm.sh

Open drewbietron opened this issue 3 years ago • 5 comments

Importing the Stripe library results in the stripe client being typed as any.

I've tried as many combinations of esm.sh imports for Stripe as I can, including the one referenced in this example and the stripe client is always cast to any.

I realize this may be more of a Stripe issue than a Supabase issue, but given the helpfulness of the Supabase squad, I figured I'd ask here in case anyone has any good pointers on how to get a typed Stripe client in Supabase functions 😃

image

drewbietron avatar Dec 07 '22 01:12 drewbietron

I'm currently also not sure why that's happening. I see you've also opened this issue here: https://github.com/stripe-samples/stripe-node-deno-samples/issues/2. I'll check with the Stripe folks in their Discord.

thorwebdev avatar Dec 07 '22 02:12 thorwebdev

Discussing with the Stripe team here: https://discord.com/channels/841573134531821608/841573134531821616/1049880424949764168

thorwebdev avatar Dec 07 '22 02:12 thorwebdev

As mentioned here this will be resolved once Deno Deploy supports npm module compatibility mode.

thorwebdev avatar Dec 09 '22 07:12 thorwebdev

Hi 👋 This issue is still present in v12.11.0

simpros avatar Jul 11 '23 06:07 simpros