throw new Error("'output.filename' is required, either in config file or as --output-filename"); 为什么呢

throw new Error("'output.filename' is required, either in config file or as --output-filename");  为什么呢

齿鱼回答:module.exports 写成了module.export

 

配置less文件时Module build failed: TypeError: loaderContext.getResolve is not a function

会报错因为版本太高,在配置文件里手动将less改为3.9.0,less-loaderl版本改成5.0.0,再npm install重新下载,再npm rub build

posted @ 2020-05-25 18:18  紫花地丁year  阅读(2415)  评论(3编辑  收藏  举报