valorant-api.js icon indicating copy to clipboard operation
valorant-api.js copied to clipboard

Unexpected Token '('

Open yash1441 opened this issue 3 years ago • 3 comments

node_modules/@ev3nvy/valorant-api.js/built/clientAPI/valorant.js:57
    async #getSessionIdCookie() {
                             ^

SyntaxError: Unexpected token '('

yash1441 avatar Feb 07 '22 07:02 yash1441

this error seems really weird, but despite this the library currently doesn't work due to the new bot protection they put in place, will push an update when I get around to it. however since this isn't related to that, a node version, OS and the code you are trying to run will help out a lot

ev3nvy avatar Feb 07 '22 14:02 ev3nvy

Node.js v12.22.6 Not sure about the OS since I am using this service called Repl.it but I guess Linux? The code is the example code provided in the readme.

yash1441 avatar Feb 14 '22 12:02 yash1441

I see, the error is because node.js below the version 14.19.0 doesn't support private class methods, I am rewriting parts of the code and will take a note of that, expect an alpha within the next week or two

ev3nvy avatar Feb 15 '22 14:02 ev3nvy