{"action":"created","issue":{"url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/2","repository_url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal","labels_url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/2/comments","events_url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/2/events","html_url":"https://github.com/casinocoin/casinocoin-dev-portal/issues/2","id":312075443,"number":2,"title":"CasinocoinAPI Beginners guide fails on first script","user":{"login":"cscchat","id":37217925,"avatar_url":"https://avatars0.githubusercontent.com/u/37217925?v=4","gravatar_id":"","url":"https://api.github.com/users/cscchat","html_url":"https://github.com/cscchat","followers_url":"https://api.github.com/users/cscchat/followers","following_url":"https://api.github.com/users/cscchat/following{/other_user}","gists_url":"https://api.github.com/users/cscchat/gists{/gist_id}","starred_url":"https://api.github.com/users/cscchat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cscchat/subscriptions","organizations_url":"https://api.github.com/users/cscchat/orgs","repos_url":"https://api.github.com/users/cscchat/repos","events_url":"https://api.github.com/users/cscchat/events{/privacy}","received_events_url":"https://api.github.com/users/cscchat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-04-06T18:35:27Z","updated_at":"2018-04-10T21:06:41Z","closed_at":null,"author_association":"NONE","body":"Using Node 4.2.1, after following the steps up to [Running the script](https://casinocoin.org/build/tutorial-casinocoinapi-beginners-guide.html#running-the-script) , I get the following error.\r\n````\r\n/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/node_modules/casinocoin-libjs-address-codec/src/x-address-codec.js:58\r\n    const {\r\n          ^\r\n\r\nSyntaxError: Unexpected token {\r\n    at exports.runInThisContext (vm.js:53:16)\r\n    at Module._compile (module.js:414:25)\r\n    at Module._extensions..js (module.js:442:10)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/babel-cli/node_modules/babel-register/lib/node.js:152:7)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:311:12)\r\n    at Module.require (module.js:366:17)\r\n    at require (module.js:385:17)\r\n    at Object.<anonymous> (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/node_modules/casinocoin-libjs-address-codec/src/index.js:4:18)\r\n    at Module._compile (module.js:435:26)\r\n````\r\n\r\nI tried to use babel-preset-env (since babel-preset-es2015 is deprecated), but no dice.  Additionally, I tried to use node v5.0.0 and got the same result.\r\n\r\nI tried with node v8.14, and got a different error.\r\n\r\n````\r\n/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/dist/npm/common/schema-validator.js:60\r\n        throw new ValidationError(result.errors.join());\r\n        ^\r\n[ValidationError(instance additionalProperty \"port\" exists in instance when not allowed)]\r\n    at ValidationError.CasinocoinError (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/dist/npm/common/errors.js:36:19)\r\n    at new ValidationError (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/dist/npm/common/errors.js:180:119)\r\n    at Object.schemaValidate (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/dist/npm/common/schema-validator.js:60:15)\r\n    at Object.wrapper [as apiOptions] (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/node_modules/lodash/index.js:3592:19)\r\n    at new CasinocoinAPI (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/casinocoin-libjs/dist/npm/api.js:103:25)\r\n    at Object.<anonymous> (/Users/xxxx/Code/my_casinocoin_experiment/get-account-info.js:4:13)\r\n    at Module._compile (module.js:569:30)\r\n    at loader (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/babel-cli/node_modules/babel-register/lib/node.js:144:5)\r\n    at Object.require.extensions.(anonymous function) [as .js] (/Users/xxxx/Code/my_casinocoin_experiment/node_modules/babel-cli/node_modules/babel-register/lib/node.js:154:7)\r\n    at Module.load (module.js:503:32)\r\n````\r\n\r\nI did not `npm install` between versions (if that makes a difference, let me know).\r\n\r\nI also tried using `npx babel` instead of `./node_modules/.bin/babel-node` as recommend on the babeljs.io site.  no change."},"comment":{"url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/comments/380246736","html_url":"https://github.com/casinocoin/casinocoin-dev-portal/issues/2#issuecomment-380246736","issue_url":"https://api.github.com/repos/casinocoin/casinocoin-dev-portal/issues/2","id":380246736,"user":{"login":"ajochems","id":584523,"avatar_url":"https://avatars1.githubusercontent.com/u/584523?v=4","gravatar_id":"","url":"https://api.github.com/users/ajochems","html_url":"https://github.com/ajochems","followers_url":"https://api.github.com/users/ajochems/followers","following_url":"https://api.github.com/users/ajochems/following{/other_user}","gists_url":"https://api.github.com/users/ajochems/gists{/gist_id}","starred_url":"https://api.github.com/users/ajochems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajochems/subscriptions","organizations_url":"https://api.github.com/users/ajochems/orgs","repos_url":"https://api.github.com/users/ajochems/repos","events_url":"https://api.github.com/users/ajochems/events{/privacy}","received_events_url":"https://api.github.com/users/ajochems/received_events","type":"User","site_admin":false},"created_at":"2018-04-10T21:06:41Z","updated_at":"2018-04-10T21:06:41Z","author_association":"NONE","body":"Good point. Wallet (which uses this lib) is using Node 8.9.3 LTS so we need to update the docs to reflect that requirement"}}
{"actor":{"display_login":"ajochems"}}