SyntaxError: Unexpected reserved word => prettier/third-party.js

  1. I faced same issue first I tried with upgrading node v8 --> node v10 works fine.

  2. If you do not want to upgrade your node version you can downgrade prettier version to [email protected] This fix is also working properly.

Downgrade prettier version:

npm i -D [email protected]

More info: https://dev.to/shivampawar/syntaxerror-unexpected-reserved-word-prettierthird-partyjs-3ph7


As described here : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of

This syntax :

for await (const place of this.config.searchPlaces) {
  // ...
}

is available in NodeJS starting version 10.0.0