vue sass启动异常

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值