Skip to content

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

试着在模块的导入路径中添加 ?target=deno。对于 Stripe,更新后的导入方式如下:

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

1
import Stripe from "https://esm.sh/stripe@11.2.0?target=deno";