Hedera, Following getting started I got errors in the first page

80 Views Asked by At

I am trying to follow the first example in the documentation https://docs.hedera.com/hedera/getting-started/environment-set-up ( JS ), but I got this error after running the index.js

/home/development/hello-hedera-js-sdk/node_modules/@hashgraph/sdk/lib/transaction/TransactionReceipt.cjs:166
    this.serials = props.serials ?? [];

Any clue?

1

There are 1 best solutions below

1
R0bertinski On

Solved! I just used the command "node index.js" instead off "js index.js". node.js is using EcmaScript 11 that supported the double question mark for the ternary conditional.