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

Tag chunk load error with ChunkLoadError #1053

Closed
jorrit opened this issue Sep 20, 2023 · 1 comment · Fixed by #1073
Closed

Tag chunk load error with ChunkLoadError #1053

jorrit opened this issue Sep 20, 2023 · 1 comment · Fixed by #1073

Comments

@jorrit
Copy link

jorrit commented Sep 20, 2023

The Webpack runtime sets the name of chunk load errors to ChunkLoadError (see for example https://github.com/webpack/webpack/blob/1f13ff9fe587e094df59d660b4611b1bd19aed4c/lib/css/CssLoadingRuntimeModule.js#L350).

My suggestion is to also add this to the error thrown by mini-css-extract-plugin (around

'err.code = "CSS_CHUNK_LOAD_FAILED";',
).

@jorrit
Copy link
Author

jorrit commented Jan 10, 2024

Thanks!

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

Successfully merging a pull request may close this issue.

1 participant