Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: data did not match any variant of untagged enum MinifyTarget #10

Open
elado opened this issue Apr 11, 2024 · 1 comment
Open

Comments

@elado
Copy link

elado commented Apr 11, 2024

Seeing this error in a compilation, but there are no hints on what went wrong:

HookWebpackError: data did not match any variant of untagged enum MinifyTarget
    at makeWebpackError (/foo/node_modules/webpack/lib/HookWebpackError.js:48:9)
    at /foo/node_modules/webpack/lib/Compilation.js:3175:12
    at eval (eval at create (/foo/node_modules/tapable/lib/HookCodeFactory.js:33:10), <anonymous>:88:1)
-- inner error --
Error: data did not match any variant of untagged enum MinifyTarget
caused by plugins in Compilation.hooks.processAssets
Error: data did not match any variant of untagged enum MinifyTarget

I don't have processAssets hook or MinifyTarget so I guess it's internal.

Webpack 5.91.0

@guoyunhe
Copy link
Owner

Please provide a minimal reproduce repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants