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)

Most upvoted comments

@auliafaizahr try deleting node_modules and then just npm i. It helped me last time.

I’m seeing this error when I run in CircleCI Alpine. Local build and dev work fine.

ERROR in spawn /root/project/node_modules/cwebp-bin/vendor/cwebp ENOENT

ERROR in ImageminWebpWebpackPlugin: "img/crosssell-default.ec73cd9a4cefd898866ef843c643f55b.png" wasn't converted!

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