paddle-node-sdk
paddle-node-sdk copied to clipboard
[Bug]: `EventName` not accessible with Supabase Edge Functions.
What happened?
Hello, I'm using Paddle Webhooks & Supabase Edge Functions to manage my customers' billing. I want to use this SDK in the Webhooks which work with Deno.
I tried to import this module like any other npm module through:
import { Paddle, EventName, Environment } from "npm:@paddle/[email protected]";
This doesn't work and returns:
Uncaught SyntaxError: The requested module 'npm:@paddle/[email protected]' does not provide an export named 'EventName'
Steps to reproduce
- Create a supabase webhook
- Import the Paddle SDK and
EventName
enum - Try the webhook
What did you expect to happen?
Access the EventName
in Paddle SDK on Edge Functions.
Edit
I don't know if EventName
is the only exported thing that's concerned (haven't tested other exports yet).