image-webpack-loader icon indicating copy to clipboard operation
image-webpack-loader copied to clipboard

Cannot find module 'gifsicle'

Open lsy-carlos opened this issue 4 years ago • 7 comments

When I build,An error has occurred:

Error: Cannot find module 'gifsicle' at Function.Module._resolveFilename (module.js:547:15) at Function.Module._load (module.js:474:25) at Module.require (module.js:596:17) my webpack.config.js:

           test:/\.(svg|png|gif|jpe?g)$/,
            use:[
                {
                    loader:'file-loader',
                    options:{
                        name:'[name]_[hash:8].[ext]'
                    }
                },
                 'image-webpack-loader', 
            ]

lsy-carlos avatar Apr 26 '20 13:04 lsy-carlos

use cnpm

BlowinInWind avatar May 01 '20 00:05 BlowinInWind

i guess you used official source from yarn,you can use other source

mezhanglei avatar May 15 '20 07:05 mezhanglei

+1 for this. Having the same issue on alpine linux

danman113 avatar Jul 31 '20 23:07 danman113

+1 for this. I am using ubuntu 20.04 with ver 7.0.0. How can I resolve this problem ??? thanks

quocthangit247 avatar Sep 15 '20 03:09 quocthangit247

+1 for this. Having the same issue on linux

milkins87 avatar Sep 17 '20 14:09 milkins87

+1. This seems to be the underlying issue: https://github.com/imagemin/gifsicle-bin/issues/113 this prevents us from building on our host, and I haven't found a viable solution other than installing the dependencies on the server (which is not scalable, really). If anyone has an alternative, it'd be great.

enrique-ramirez avatar Sep 25 '20 13:09 enrique-ramirez

i met the same qa

Marszht avatar May 12 '21 11:05 Marszht