Skip to content

gulp-imagemin: Couldn't load default plugin "gifsicle" and "optipng" #197

@yangxuan74

Description

@yangxuan74

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions