Skip to content
This repository has been archived by the owner on Mar 17, 2023. It is now read-only.

Cannot find module 'gifsicle' #233

Open
lsy-carlos opened this issue Apr 26, 2020 · 7 comments
Open

Cannot find module 'gifsicle' #233

lsy-carlos opened this issue Apr 26, 2020 · 7 comments

Comments

@lsy-carlos
Copy link

lsy-carlos commented Apr 26, 2020

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
Copy link

use cnpm

@mezhanglei
Copy link

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

@danman113
Copy link

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

@quocthangit247
Copy link

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

@milkins87
Copy link

+1 for this. Having the same issue on linux

@enrique-ramirez
Copy link

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

@Marszht
Copy link

Marszht commented May 12, 2021

i met the same qa

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants