tcoopman / image-webpack-loader

Image loader module for webpack
MIT License
2.03k stars 131 forks source link

Cannot find module 'gifsicle' #233

Open lsy-carlos opened 4 years ago

lsy-carlos commented 4 years ago

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', 
            ]
BlowinInWind commented 4 years ago

use cnpm

mezhanglei commented 4 years ago

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

danman113 commented 4 years ago

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

quocthangit247 commented 3 years ago

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

milkins87 commented 3 years ago

+1 for this. Having the same issue on linux

enrique-ramirez commented 3 years ago

+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.

Marszht commented 3 years ago

i met the same qa