tcoopman / image-webpack-loader

Image loader module for webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot find module 'gifsicle'

lsy-carlos opened this issue · 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', 
            ]

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

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

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

+1 for this. Having the same issue on linux

+1. This seems to be the underlying issue: imagemin/gifsicle-bin#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.

commented

i met the same qa