I was just setting up a vue project using the webpack template like stated here: http://vuejs-templates.github.io/webpack/
However after running npm run dev just to
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