当前位置 博文首页 > INVALID_ARG_TYPE]: The “path“ argument must be of type str

    INVALID_ARG_TYPE]: The “path“ argument must be of type str

    作者:[db:作者] 时间:2021-07-10 09:34

    Vue项目报错如下

    Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
        at validateString (internal/validators.js:121:11)
        at Object.join (path.js:375:7)
        at getSassOptions (D:\VueProj\test\node_modules\sass-loader\dist\utils.js:160:37)
        at Object.loader (D:\VueProj\test\node_modules\sass-loader\dist\index.js:36:49)
    

    解决方法
    sass-loader版本过高导致的,重装低版本sass-loader。

    npm uninstall sass-loader
    npm install --save-dev sass-loader@7.3.1
    
    cs
    下一篇:没有了