Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SyntaxError: Unexpected token #45

Open
magicianlee007 opened this issue Nov 7, 2017 · 4 comments
Open

SyntaxError: Unexpected token #45

magicianlee007 opened this issue Nov 7, 2017 · 4 comments

Comments

@magicianlee007
Copy link

when I import the kraken-api and run the project.
I get this error.

const rawRequest = async (url, headers, data, timeout) => {
                         ^

SyntaxError: Unexpected token (
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Volumes/Work/SourceTree/financial/dist/market/Kraken.js:11:22)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Volumes/Work/SourceTree/financial/dist/test.js:17:18)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
@kroitor
Copy link

kroitor commented Nov 7, 2017

@vigor111 you probably have an old version of node. Try node --version in console, and if it shows less then current stable (8+), update it, then retry the code.

@magicianlee007
Copy link
Author

Oh it works, Thanks for your advice..
+1

@shahinfir
Copy link

I have v9.3.0 and I still get this same error. Any ideas?

@SandeshSarfare
Copy link

@shahinfir did you resolve it? I too have the same error

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

No branches or pull requests

4 participants