RE: Steem.js Update: Vote method added (tutorial inside)

You are viewing a single comment's thread from:

Steem.js Update: Vote method added (tutorial inside)

in steemjs •  8 years ago 

Hi Fabien,

I was trying 0.3.9, but when I tried this simple code:

var steem = require('steem');

steem.api.getAccounts(['asch'], function(err, result) {
console.log(err, result);
});

I got this Syntax error:

When I try that same code on https://tonicdev.com/npm/steem everything works fine!

When I install 0.3.7, the code also works fine locally. Then when I go back to 0.3.9, I get the same error again.

Anyone has this same issue? Or is it just me?

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

OK, problem solved. I was still using NodeJS v0.12.7. After installing NodeJS v4.5.0. This problem was gone. Sorry for the panic ;-)

  ·  7 years ago Reveal Comment