今天在运行vue run serve 的时候遇到了下面问题

ValidationError: Progress Plugin Invalid Options

        options should NOT have additional properties
        options should NOT have additional properties
        options should NOT have additional properties
        options should pass "instanceof" keyword validation
        options should match exactly one schema in oneOf

于是我就想昨天还好好的今天怎么就不行了,应该是我今天的操作有问题

我在运行项目之前安装了一个loader,于是我就新创建了一个vue2.x的项目对比里面的包有什么不同

 原来是vue-cli升级到了5.0版本,原来是我运行了npm audit fix这个命令它会更新loader,但更新了之后会出现很多不兼容问题

2 packages are looking for funding
  run `npm fund` for details

34 vulnerabilities (22 moderate, 11 high, 1 critical)

To address issues that do not require attention, run:
  npm audit fix

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

于是我把包改成最干净的vue2.x里面的包,项目成功运行

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐