当前位置: 首页 > 工具软件 > src2png > 使用案例 >

error in ./src/assets/images/logo.png报错

傅越
2023-12-01

vue项目启动执行时报错找不到图片,error in ./src/assets/images/logo.png
解决:
先卸载再重新安装image-webpack-loader

npm uninstall image-webpack-loader

cnpm install image-webpack-loader --save-dev

更新:
如果安装image-webpack-loader依然报错pngquant failed to build, make sure that libpng-dev is installed
那就需要安装imagemin-pngquant

cnpm install imagemin-pngquant --save-dev

安装成功,再安装 image-webpack-loader

cnpm install image-webpack-loader --save-dev
 类似资料: