D:\vue\hello-vue>npm run dev
13% building modules 29/74 modules 45 active …&index=0!D:\vue\hello-vue\src\App.vue{ parser: “babylon” } is deprecated; we now treat it as { parser: “babel” }.
94% asset optimization
ERROR Failed to compile with 1 errors 3:16:15 ├F10:
error in ./src/view/login.vue
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The “path” argument must be of type string. Received undefined
at validateString (internal/validators.js:120:11)
at Object.join (path.js:375:7)
at getSassOptions (D:\vue\hello-vue\node_modules\sass-loader\dist\utils.js:160:37)
at Object.loader (D:\vue\hello-vue\node_modules\sass-loader\dist\index.js:36:49)
@ ./node_modules/vue-style-loader!./node_modules/css-loader?{“sourceMap”:true}!./node_modules/vue-loader/lib/style-compiler?{“vue”:true,“id”:“data-v-1920f498”,“sc
oped”:true,“hasInlineConfig”:false}!./node_modules/sass-loader/dist/cjs.js?{“sourceMap”:true}!./node_modules/vue-loader/lib/selector.js?type=styles&index=0!./src/v
iew/login.vue 4:14-370 13:3-17:5 14:22-378
@ ./src/view/login.vue
@ ./src/router/index.js
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js
解决方案:修改package.json的sass的版本为7.3.1