getting-started
getting-started copied to clipboard
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:
node --version
- ~~10~~
- ~~12~~
- 14
- 16
If the version is below 14, then you need to upgrade Node.js to version 14 or above (16 is recommended).
Wechaty requires Node.js 14+ since version 0.69
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 and facing same issue
@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? SyntaxError: Unexpected token '.' ←[90m at Loader.moduleStrategy (internal/modules/esm/translators.js:81:18)←[39m