类型错误:不支持合并未定义

时间:2021-07-06 11:21:44

标签: vue.js node-modules quasar-framework quasar webpack-merge

在我的 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

]

1 个答案:

答案 0 :(得分:2)

所以问题是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
相关问题