Skip to content

[unplugin-imagemin] Cannot read properties of undefined (reading 'fileName') #207

@bosens-China

Description

@bosens-China

Steps to reproduce

    imagemin({
      conversion: [
        { from: 'jpeg', to: 'webp' },
        { from: 'png', to: 'webp' },
        { from: 'JPG', to: 'jpeg' },
      ],
    }),

Image

We have found that there is a problem with your writing, and it will report an error during the first run.
However, due to the presence of cached files, it was able to run on the second attempt. Please investigate and resolve this issue.

fileNameMap: Map<string, string>,

What is expected?

normal output

What is actually happening?

[unplugin-imagemin] Cannot read properties of undefined (reading 'fileName')

System Info

Any additional comments?

No response

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