valorant-api.js
valorant-api.js copied to clipboard
Unexpected Token '('
node_modules/@ev3nvy/valorant-api.js/built/clientAPI/valorant.js:57
async #getSessionIdCookie() {
^
SyntaxError: Unexpected token '('
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
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.
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