Skip to content

Commit 2402ab4

Browse files
authored
docs(concepts): close issue #5308 (#5309)
1 parent 01fe3f1 commit 2402ab4

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/content/concepts/module-federation.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ T> There is also an `'auto'` value available to [`output.publicPath`](/configura
290290

291291
## Troubleshooting
292292

293-
**`Uncaught Error: Shared module is not available for eager consumption`**
293+
### `Uncaught Error: Shared module is not available for eager consumption`
294294

295295
The application is eagerly executing an application that is operating as an omnidirectional host. There are options to choose from:
296296

@@ -348,7 +348,7 @@ new ModuleFederationPlugin({
348348
});
349349
```
350350

351-
**`Uncaught Error: Module "./Button" does not exist in container.`**
351+
### `Uncaught Error: Module "./Button" does not exist in container.`
352352

353353
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.
354354

@@ -363,7 +363,11 @@ new ModuleFederationPlugin({
363363
});
364364
```
365365

366-
**`Uncaught TypeError: fn is not a function`**
366+
### `Uncaught TypeError: fn is not a function`
367367

368368
You are likely missing the remote container, make sure it's added.
369369
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

Comments
 (0)