Unable to run simple node.js app

Issue https://github.com/aeternity/aepp-sdk-js/issues/1420
Hello, I’ve implemented simple node app (https://github.com/quantum0hound/aetest):

index.js:

#!/usr/bin/env node
const {Crypto} = require ('@aeternity/aepp-sdk');

const keypair = Crypto.generateKeyPair();
console.log(`Secret key: ${keypair.secretKey}`);
console.log(`Public key: ${keypair.publicKey}`);    

package.json:

{
  "name": "aetest",
  "version": "1.0.0",
  "main": "index.js",
  "type": "commonjs",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "@aeternity/aepp-sdk": "^10.0.0"
  }
}

Execution raises SyntaxError: Unexpected token ‘?’ in

node_modules/@aeternity/aepp-sdk/dist/aepp-sdk.js:1

@davidyuk might be able to help here?

we’re already in discussion on github:

1 Like