Closed tapz closed 1 year ago
V3 does not seem to work with CommonJS. Is this intentional?
No errors
TypeError: Vonage is not a constructor
const Vonage = require('@vonage/server-sdk'); new Vonage( { apiKey: '..', apiSecret: '...', applicationId: '...', privateKey: Buffer.from(...), }
The api seems to have changed. Release notes would be nice...
const { Vonage } = require('@vonage/server-sdk');
V3 does not seem to work with CommonJS. Is this intentional?
Expected Behavior
No errors
Current Behavior
TypeError: Vonage is not a constructor
Possible Solution
Steps to Reproduce (for bugs)
Context
Your Environment