From 967d02d2d32e1ed4ddb9e8cb7674a38f77905c5d Mon Sep 17 00:00:00 2001 From: Evan Sanderson-Movius Date: Tue, 10 Jun 2025 09:51:14 -0400 Subject: [PATCH 1/2] Update 5.mdx Add section in troubleshooting tips on Cannot read properties of undefined (reading 'call') error --- src/content/migrate/5.mdx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index 77a44fe80ebb..73a1e49610da 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -292,6 +292,10 @@ Repeat the following steps until you solved at least level 3 or 4: - 404 errors pointing to URLs containing `auto` - Not all ecosystem tooling is ready for the new default automatic `publicPath` via `output.publicPath: "auto"` - Use a static `output.publicPath: ""` instead. + - Cannot read properties of undefined (reading 'call') + - If you see this error during runtime, it may be related to the [ModuleConcatenationPlugin](https://webpack.js.org/plugins/module-concatenation-plugin/). Check if you are using the plugin, and if you've included it in the `plugins` sections of a config, and that config is also set to `production` mode, remove the plugin (ie `new webpack.optimize.ModuleConcatenationPlugin()`) from your plugins list. In webpack 5, the plugin is enabled by default in production mode, and it may get included twice. + - In general, disabling each plugin and testing the build is a good way to triage where the issue might be coming from. + - See: [this issue](https://github.com/webpack/webpack/discussions/15369#discussioncomment-13420496) for more details. - Level 6: **Deprecation Warnings**. From ad684e3247861453225f5b513683b778ea2c0862 Mon Sep 17 00:00:00 2001 From: Evan Sanderson-Movius Date: Tue, 10 Jun 2025 10:14:27 -0400 Subject: [PATCH 2/2] Update 5.mdx Add name to contributors --- src/content/migrate/5.mdx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/content/migrate/5.mdx b/src/content/migrate/5.mdx index 73a1e49610da..b4801396d844 100644 --- a/src/content/migrate/5.mdx +++ b/src/content/migrate/5.mdx @@ -13,6 +13,7 @@ contributors: - getsnoopy - yevhen-logosha - akash-kumar-dev + - EvanSanderson --- This guide aims to help you migrating to webpack 5 when using webpack directly. If you are using a higher level tool to run webpack, please refer to the tool for migration instructions.