当前位置:   article > 正文

VUE 项目引入Sass后启动报错 TypeError [ERR_INVALID_ARG_TYPE]: The “path“ argument must be of type string 解决方法_vue typeerror [err_invalid_arg_type]: the "path" a

vue typeerror [err_invalid_arg_type]: the "path" argument must be of type st

 

vue文件里面使用lang="scss",

 解决方法是:肯定要安装sass-loader和node-sass

报错:TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string。

 

把package.json里面node-sass和sass-loader版本改成:"node-sass": "^4.11.1","sass-loader": "^7.3.0"就可以了

删掉node_modules文件夹,重新执行npm install,完美解决

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/198201
推荐阅读
相关标签
  

闽ICP备14008679号