TypeError: Merging undefined is not supported

TypeError: Merging undefined is not supported

在我的 Vue 项目

运行 $ quasar dev 中出现此错误
~/project/node_modules/webpack-merge/dist/index.js:63
            throw new TypeError("Merging undefined is not supported");
                  ^

[  TypeError: Merging undefined is not supported

  - index.js:63 mergeWithOptions
    [project]/[webpack-merge]/dist/index.js:63:19

  - index.js:52 merge
    [project]/[webpack-merge]/dist/index.js:52:35

  - quasar-conf-file.js:392 QuasarConfFile.compile
    [project]/[@quasar]/app/lib/quasar-conf-file.js:392:29

  - task_queues:96 processTicksAndRejections
    node:internal/process/task_queues:96:5

  - quasar-dev:237 async goLive
    [project]/[@quasar]/app/bin/quasar-dev:237:3

]

所以问题是the wrong quasar version

我的依赖项是

"dependencies": {
  "quasar": "^1.0.0",
  ...
},
"devDependencies": {
  "@quasar/app": "^2.0.0",

但是当我 运行 npm install 时,它要求我 运行 npm audit fix --force 并且它会更改 @quasar/app 版本。您需要再次重置 package.json 和 运行 npm install 才能修复它。

14 vulnerabilities (7 moderate, 7 high)

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

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