Skip to content

[WEBPACK5] appendHash: true - HookWebpackError: Cannot add property integrity, object is not extensible #56

@ArTiSTiX

Description

@ArTiSTiX

When using option appendHash: true, Webpack 5 throws the following error:

HookWebpackError: Cannot add property integrity, object is not extensible

I cannot have a stacktrace of the error, but it might be due to the way the asset is "renamed", webpack might keep a track of the previous asset even if deleted.

delete compilation.assets[file.asset]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions