-
-
Notifications
You must be signed in to change notification settings - Fork 192
Unable to dynamically load stripe module #752
-
Hi,
I am using the stripe module from supabase edge functions.
in particular
import Stripe from "https://esm.sh/stripe@10.13.0?target=deno&deno-std=0.132.0&no-check";
Here, when I read this, the script size increases from 800KB to 900KB, and I have found that starting the edge function is putting a load on it.
Therefore
const module = await import( https://esm.sh/stripe@10.13.0?target=deno&deno-std=0.132.0&no-check );
When loaded dynamically like
TypeError: module not found https://esm.sh/stripe@10.13.0?target=deno&deno-std=0.132.0&no-check
An error occurred.
Perhaps the edge function side does not support dynamic loading, or the method is incorrect.
Is there an appropriate way to load it, or is there any way to make the stripe module lighter?
Thanks Regards,
Beta Was this translation helpful? Give feedback.