-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Description
Hello 👋 We use TypeScript throughout our projects. Typically we use ES modules syntax (import/export) to load our modules, this then gets boiled down to CommonJS style (require) after the compiler has run.
It seems this module does not support use of the import/export syntax, is it suppose to?
For example we encounter these sorts of errors:
Working example:
const webhooks = require("gocardless-nodejs/webhooks");
webhooks.parse(...); // ok
Broken example:
import webhooks from "gocardless-nodejs/webhooks";
webhooks.parse(...); // => Runtime TypeError: Cannot read properties of undefined (reading 'parse')
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels