npm run build报错:UnhandledPromiseRejectionWarning: TypeError: pathToFileURL is not a function
问题描述前端框架为react+umi打包时报错:UnhandledPromiseRejectionWarning: TypeError: pathToFileURL is not a function然后报错找不到所有的css文件查遍了最近的修改,发现是umi生了版本,然后css-loader报错解决方案:将umi回退到之前的版本,重新安装打包即可...