Unable to dynamically load stripe module #752
Unanswered
arstruct-onishi
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am using the stripe module from supabase edge functions.
in particular
import Stripe from "https://esm.sh/[email protected]?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/[email protected]?target=deno&deno-std=0.132.0&no-check
);When loaded dynamically like
TypeError: module not found https://esm.sh/[email protected]?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.
All reactions