imagemin-webp-webpack-plugin: ERROR in ImageminWebpWebpackPlugin: FILE wasn't converted!
Hello, thanks for your plugin. I use it with default config, but I start my dev server I recieve message
ERROR in spawn /home/node/node_modules/cwebp-bin/vendor/cwebp ENOENT ERROR in ImageminWebpWebpackPlugin: "img/example.jpg" wasn't converted!
const ImageminWebpWebpackPlugin = require('imagemin-webp-webpack-plugin');
plugins: [
new ImageminWebpWebpackPlugin(),
]`
"dev": "webpack-dev-server --mode development --config ./assets/webpack --open --hot"
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (5 by maintainers)
@auliafaizahr try deleting
node_modules
and then justnpm i
. It helped me last time.I’m seeing this error when I run in CircleCI Alpine. Local build and dev work fine.
anyone facing issue after installing the packages
apt-get install -y libjpeg-dev libpng-dev libtiff-dev libgif-dev libwebp-dev
remove your node_modules and reinstall packages it will work