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

Unexpected Token '(' #2

Open
yash1441 opened this issue Feb 7, 2022 · 3 comments
Open

Unexpected Token '(' #2

yash1441 opened this issue Feb 7, 2022 · 3 comments

Comments

@yash1441
Copy link

yash1441 commented Feb 7, 2022

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

SyntaxError: Unexpected token '('
@ev3nvy
Copy link
Owner

ev3nvy commented Feb 7, 2022

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 ev3nvy closed this as completed Feb 7, 2022
@ev3nvy ev3nvy reopened this Feb 7, 2022
@yash1441
Copy link
Author

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.

@ev3nvy
Copy link
Owner

ev3nvy commented Feb 15, 2022

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

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

2 participants