Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

ReferenceError: window is not defined #46

Open
chpan opened this issue Mar 21, 2022 · 1 comment
Open

ReferenceError: window is not defined #46

chpan opened this issue Mar 21, 2022 · 1 comment

Comments

@chpan
Copy link

chpan commented Mar 21, 2022

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

@lemmon-714
Copy link

seconded

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants