Prettier has caused this regression in their 1.13.0 update which occurred today. Downgrade to the previous version to fix this error:
1.13.0
npm install --save-dev prettier@1.12.0npm run dev
npm install --save-dev prettier@1.12.0
npm run dev
That should do the trick.
it is fixed in vue-loader@13.7.2 and vue-loader@14.2.3. So just upgrade.
If you're using Yarn add this to your package.json to force @vue/component-compiler-utils to use the right version:
package.json
@vue/component-compiler-utils
"resolutions": { "@vue/component-compiler-utils/prettier": "1.12.1"}
Then do a fresh install.
reference