paddle-node-sdk icon indicating copy to clipboard operation
paddle-node-sdk copied to clipboard

[Bug]: `EventName` not accessible with Supabase Edge Functions.

Open johannbuscail opened this issue 10 months ago • 5 comments

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

  1. Create a supabase webhook
  2. Import the Paddle SDK and EventName enum
  3. 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).

johannbuscail avatar Apr 09 '24 13:04 johannbuscail