TypeError [ERR_INVALID_ARG_TYPE]:The “path“ argument must be of type string. Received undefined

错误描述:

目前,在运行Vue的时候,如果是第一次运行的话,会出现如下错误;
TypeError [ERR_INVALID_ARG_TYPE]
: The “path” argument must be of type string. Received undefined

TypeError [ERR_INVALID_ARG_TYPE]:The “path“ argument must be of type string. Received undefined_第1张图片

错误分析:

这种情况一般来说,是因为sass-loader版本过高

问题解决:【以管理员身份运行命令提示符】

1、卸载当前sass-loader

npm uninstall sass-loader  

2、将sass-loader版本回退到7.3.1

npm install sass-loader@7.3.1 --save-dev

问题解决,希望可以帮助到大家!!!

你可能感兴趣的:(vue.js,es6,node.js,reactjs,javascript)