Importing Stripe or other modules from esm.sh on Deno Edge Functions throws an error

Last edited: 1/17/2025

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


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