gulp-imagemin: Couldn't load default plugin "gifsicle" and "optipng"
Open
Nobody has claimed this yet.
- Dominant language
- CSS
- Stars
- 2
- Forks
- 20
- PR merge metrics
- No merged PRs in 30d
Description
When I run the gulp bundle command, I encounter the following error. How can I fix it?
- node: v24.13.0
- Antora: 11.6.2
[12:00:23] gulp-imagemin: Couldn't load default plugin "gifsicle"
[12:00:23] gulp-imagemin: Couldn't load default plugin "optipng"
(node:6964) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
(Use `node --trace-deprecation ...` to show where the warning was created)
[12:00:25] 'build' errored after 1.66 s
[12:00:25] TypeError in plugin "gulp-imagemin"
Message:
fn is not a function
Details:
fileName: C:\Users\yangx\Desktop\my-docs-ui\src\img\logo.png
domainEmitter: [object Object]
domainThrown: fals
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing gulp bundle with Node v24.13.0 and inspect the gulp-imagemin integration that processes src/img/logo.png. Investigate the default-plugin loading errors for gifsicle and optipng, then confirm that the build completes without the fn is not a function failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nodejs
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100