Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stripe types not imported via esm.sh #7

Open
drewbietron opened this issue Dec 7, 2022 · 5 comments
Open

Stripe types not imported via esm.sh #7

drewbietron opened this issue Dec 7, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@drewbietron
Copy link

drewbietron commented Dec 7, 2022

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 drewbietron added the bug Something isn't working label Dec 7, 2022
@thorwebdev
Copy link
Contributor

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

@thorwebdev
Copy link
Contributor

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

@thorwebdev
Copy link
Contributor

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

@simpros
Copy link

simpros commented Jul 11, 2023

Hi 👋
This issue is still present in v12.11.0

@BeezBeez
Copy link

BeezBeez commented Nov 19, 2024

Hello ! This issue is still present in v17.*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants