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
Copy file name to clipboardExpand all lines: src/content/concepts/module-federation.mdx
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ T> There is also an `'auto'` value available to [`output.publicPath`](/configura
290
290
291
291
## Troubleshooting
292
292
293
-
**`Uncaught Error: Shared module is not available for eager consumption`**
293
+
### `Uncaught Error: Shared module is not available for eager consumption`
294
294
295
295
The application is eagerly executing an application that is operating as an omnidirectional host. There are options to choose from:
296
296
@@ -348,7 +348,7 @@ new ModuleFederationPlugin({
348
348
});
349
349
```
350
350
351
-
**`Uncaught Error: Module "./Button" does not exist in container.`**
351
+
### `Uncaught Error: Module "./Button" does not exist in container.`
352
352
353
353
It likely does not say `"./Button"`, but the error message will look similar. This issue is typically seen if you are upgrading from webpack beta.16 to webpack beta.17.
354
354
@@ -363,7 +363,11 @@ new ModuleFederationPlugin({
363
363
});
364
364
```
365
365
366
-
**`Uncaught TypeError: fn is not a function`**
366
+
### `Uncaught TypeError: fn is not a function`
367
367
368
368
You are likely missing the remote container, make sure it's added.
369
369
If you have the container loaded for the remote you are trying to consume, but still see this error, add the host container's remote container file to the HTML as well.
370
+
371
+
### Collision between modules from different remotes
372
+
373
+
If you're going to load multiple modules from different remotes, it's advised to set the [`output.uniqueName`](/configuration/output/#outputuniquename) option for your remote builds to avoid collisions between multiple webpack runtimes.
0 commit comments