Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions