eBay / digital-signature-nodejs-sdk

NodeJS SDK to generate and validate digital signatures
Apache License 2.0
9 stars 6 forks source link

Cannot use import statement outside a module #8

Closed ruslan-khomiak closed 1 year ago

ruslan-khomiak commented 1 year ago

I try to import signMessage method like this: const {signMessage} = require('digital-signature-nodejs-sdk');

But I get an error: import { constants } from './constants'; ^^^^^^

SyntaxError: Cannot use import statement outside a module

Can you help me with it ?

vhle-ms commented 1 year ago

I'm having the same issue - I've raised a PR for this

ruslan-khomiak commented 1 year ago

@LokeshRishi Did you see it? Can merge?

LokeshRishi commented 1 year ago

@ruslan-khomiak Thanks for reporting the issue, I have published a new version of the package (3.0.0) which should resolve the issue. @vhle-ms Thanks for the PR!

Let me know if you still see the issue.