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

后端 未结 5 1811
天命终不由人
天命终不由人 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:19

    Removing the current node_modules folder from the project, adding "prettier": "^1.12.1" to package.json and running npm install solved the issue.

    Another option is to run npm install prettier@1.12.1 without removeing the node_modules folder before

    Update:

    For some users, verion 1.12.1 did not work

    @Kivin proposed another solution that can be found here: vue webpack template missing parser

提交回复
热议问题