Question
async function Unexpected token after droplet resize
I resized my droplet and after that my node server doesn’t recognize the keyword async for the function definition as if the Node.js version was wrong
async function getGrapsh(results){
0|index | ^^^^^^^^
0|index |
0|index | SyntaxError: Unexpected token function
but when i type node -v in the terminal i get
v8.9.1
Im using pm2
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
×