Open huan opened 3 years ago
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+
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
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 '??=' at Loader.moduleStrategy (internal/modules/esm/translators.js:145:18) (Use node --trace-warnings ... to show where the warning was created) (node:20596) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:20596) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@Mhdnoor06 type this command and check your node version. node -v
if you are using any latest lib make sure you upgrade your node version using nvm. you can install and keep multiple node version in your local system and use any of them using "nvm use <@node-version / @node-version-name / --lts>" command
example : nvm use --lts
TL;DR: Update Node.js to version 16+
If you saw the following error messages:
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).