Back to Supabase

Importing Stripe Or Other Modules From Esmsh On Deno Edge Functions Throws An Error TmbB5p

apps/docs/content/troubleshooting/importing-stripe-or-other-modules-from-esmsh-on-deno-edge-functions-throws-an-error-TmbB5p.mdx

1.26.04172 B
Original Source

Try adding ?target=deno to the import path of the module. For Stripe, the updated import would be:

import Stripe from "https://esm.sh/[email protected]?target=deno";