ergo-js icon indicating copy to clipboard operation
ergo-js copied to clipboard

ReferenceError: window is not defined

Open chpan opened this issue 3 years ago • 1 comments

use step detail:

1:npm install @ergoplatform/ergo-js

test code:

`const ergo = require('@ergoplatform/ergo-js');

async function TestERG() { //const currentHeight = ergo.getCurrentHeight() //console.log("currentHeight", currentHeight)

}

TestERG()

[bitforex@localhost erg]$ cat test.js const ergo = require('@ergoplatform/ergo-js');

async function TestERG() { const currentHeight = ergo.getCurrentHeight() console.log("currentHeight", currentHeight) }

TestERG()`

2: node test.js image

chpan avatar Mar 21 '22 10:03 chpan

seconded

lemmon-714 avatar May 13 '22 16:05 lemmon-714