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

Help sir const accessToken = await getAccessToken(); #15

Closed
JANCOKRAIMUBAWOK opened this issue Jan 27, 2024 · 1 comment
Closed

Help sir const accessToken = await getAccessToken(); #15

JANCOKRAIMUBAWOK opened this issue Jan 27, 2024 · 1 comment

Comments

@JANCOKRAIMUBAWOK
Copy link

google-indexing-script@0.0.0 index
node ./src/index.mjs "x.com"

file:///mnt/c/Users/Administrator/Documents/GITHUB/GITHUB/WP/google-indexing-script-main/google-indexing-script-main/src/index.mjs:22
const accessToken = await getAccessToken();
^^^^^

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

prashant19981 added a commit to prashant19981/google-indexing-script that referenced this issue Jan 27, 2024
… we cannot call async methods outside a function
prashant19981 added a commit to prashant19981/google-indexing-script that referenced this issue Jan 27, 2024
@goenning
Copy link
Owner

you need a newer Nodejs version

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