-
Notifications
You must be signed in to change notification settings - Fork 337
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 '.' #204
Comments
thanks mate! this was really helpful for me :9 |
You are welcome! |
Thanks :) |
What if I already have Node version 16.15.0 but this error still exists? |
@kasm Did you find a solution? |
Has anyone found a solution for this? I'm running node 16.13.0 and still getting these errors. |
I am using v14.21.3 |
@manusharmaappfoster The easiest fix is updating to 16+ |
If the bot stops and has got an address then how do we enter the mnemonic phrase? |
I have the same problem,I want to use vs code in windows 7 so i should use node.js version 13.14.0. now when i want to use vite for creating app, it send this error to me. what can i do now? |
Did any of you find the solution, i tried upgrading to different versions like 16, 18, 20 the error message is same for all. node:20596) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token '??=' |
TL;DR: Update Node.js to version 16+
If you saw the following error messages:
SyntaxError: Unexpected token '.' at Loader.moduleStrategy (internal/modules/esm/translators.js:140:18)
Then please check the version of your Node.js:
1012If the version is below 14, then you need to upgrade Node.js to version 14 or above (16 is recommended).
The text was updated successfully, but these errors were encountered: