Closed lawrenceong closed 1 year ago
I have the same issue!!
For sanity, if you add --experimental-vm-modules
to the node executable, does the error disappear?
For sanity, if you add
--experimental-vm-modules
to the node executable, does the error disappear?
Same issue
❯ node --experimental-vm-modules
Welcome to Node.js v16.18.1.
Type ".help" for more information.
> const { Vonage } = require('@vonage/server-sdk');
.../node_modules/@vonage/server-sdk/dist/index.js:1
export { Vonage } from './vonage';
^^^^^^
Uncaught SyntaxError: Unexpected token 'export'
@manchuck I recommended pulling the 3.0.11 release as it does not currently work for us: https://docs.npmjs.com/unpublishing-packages-from-the-registry
I also got same isssue!
@lawrenceong @byungjuJin This issue has been fixed with 3.0.12
. I made the mistake of marking the server-client
package as a module which caused all the headaches. Please LMK if you are still having an issue
Requiring Vonage Server SDK is broken in 3.0.11
Expected Behavior
It should be possible to require the SDK. This was tested with 3.0.10.
Current Behavior
It is producing an error with 3.0.11.
Steps to Reproduce (for bugs)
npm i @vonage/server-sdk@3.0.11
Context
Issue does not affect us at the moment. We just revert to 3.0.10.
Your Environment