Running into “couldn't infer parser” error using vue-cli

后端 未结 5 1773
天命终不由人
天命终不由人 2020-12-31 14:59

I\'m getting an error repeatedly when trying to build a new webpack project using vue-cli. I\'m following along with the docs on the latest build (3.0.0-beta.11

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 15:05

    As already pointed out by the various resonses, you may need to rollback the version of the prettier package.

    in your package.json file, you may need to force npm to use a version (i.e. remove the hat ^)

    mine looks something like this

    "devDependencies": {
    
    "prettier": "1.12.1",
    "typescript": "^2.6.1",
    "vue": "^2.5.16",
    "vue-styleguidist": "^1.4.4",
    "vue-webpack-loaders": "^1.0.6",
    "webpack": "^3.1.0"
    

提交回复
热议问题