You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When building my project with @wordpress/scripts i encounter the following problem:
loading async chunks using import() fails when they import styles and webpackChunkName is used to give the chunk a proper name.
It's one of the issues that might get resolved when we upgrade to webpack 5. FixStyleWebpackPlugin is only necessary for webpack 4 and while it addresses some other concerns it might cause other issues.
We are in the process of upgrading webpack to the next major version v5 in #33818. FixStyleWebpackPlugin plugin is going to be removed so it should resolve this issue.
Description
When building my project with @wordpress/scripts i encounter the following problem:
loading async chunks using import() fails when they import styles and webpackChunkName is used to give the chunk a proper name.
Step-by-step reproduction instructions
Here i have created a minimal project to reproduce the issue: https://github.com/tw-360vier/wp-scripts-FixStyleWebpackPlugin-chunk-load-error
Expected behaviour
I expect the chunk to be loaded without error.
Actual behaviour
i encounter the following error:
Removing "FixStyleWebpackPlugin" from the webpack config fixes the issue, so it seems like it is related to that.
The text was updated successfully, but these errors were encountered: