Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Unable to dynamically load stripe module #752

Unanswered
arstruct-onishi asked this question in General
Discussion options

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,

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /