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 '.' #2

Open
RathalM opened this issue Jun 7, 2024 · 1 comment
Open

SyntaxError: Unexpected token '.' #2

RathalM opened this issue Jun 7, 2024 · 1 comment

Comments

@RathalM
Copy link

RathalM commented Jun 7, 2024

as the example command "npm start 10" , giving error and I don't know how to fix, please replay, thanks

chess.com-daily-puzzle@1.0.0 start
node index.mjs "10"

file:///home/user/chess.com-daily-puzzle-main/job/index.mjs:14
if (r.response?.data?.message === "End date must be after start date")
^

SyntaxError: Unexpected token '.'
at Loader.moduleStrategy (internal/modules/esm/translators.js:133:18)
at async link (internal/modules/esm/module_job.js:42:21)

@samuraitruong
Copy link
Owner

I think that is your node version, can you check what is your note version? better try with 18 or 20 that fully support module

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