bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

What's wrong with this error function apply(fn, ...args) Unexpected token...

Open MEIGOVTECH opened this issue 6 years ago • 4 comments

/root/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/[email protected]@async/dist/async.js:52 function apply(fn, ...args) { ^^^

SyntaxError: Unexpected token ... at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at Object. (/root/.nvm/versions/node/v4.9.1/lib/node_modules/bitcore/node_modules/[email protected]@insight-api/lib/blocks.js:3:13) at Module._compile (module.js:409:26) at Object.Module._extensions..js (module.js:416:10)

MEIGOVTECH avatar Aug 20 '19 12:08 MEIGOVTECH

@MEIGOVTECH Hey, I'm also getting the same error. Did you find any workaround?

vinitshahdeo avatar Dec 05 '19 08:12 vinitshahdeo

got the same error, anything anybody?

olegmitrakhovich avatar Dec 13 '19 04:12 olegmitrakhovich

found this https://stackoverflow.com/questions/56802207/nodejs-syntaxerror-unexpected-token

olegmitrakhovich avatar Dec 13 '19 04:12 olegmitrakhovich

First, I think this question is about async's version. then I saw it's not same between async's version in "node_modules/bitcore-node/package.json" and in "node_modules/insight-api/package.json".

So I changed async's version in "node_modules/insight-api/package.json" to the same value with async's version in "node_modules/bitcore-node/package.json". And I execute "npm install" in "node_modules/bitcore-node". Then it works.

samoyedsun avatar Feb 06 '21 05:02 samoyedsun