-
-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Description
Describe the bug
When working with umijs or father, during the compilation of less modules, some 'build time chunks' are generated. These temporary chunks lack chunkGraph information, leading to errors when generating runtime code.
// enhanced/scr/lib/container/runtime/FederationRuntime.ts 49
const conditionMap = this.compilation.chunkGraph.getChunkConditionMap(
this.chunk,
chunkHasJs,
);Then The current chunk id is build time chunk, the variable this.compilation.chunkGraph is undefined,causing an exception to be thrown
Suggestion
If the chunk's id is build time chunk, do not inject the federation runtime to this chunk. like this:
Reproduction
Used Package Manager
npm
System Info
-Validations
- Read the docs.
- Read the common issues list.
- Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- Make sure this is a Module federation issue and not a framework-specific issue.
- The provided reproduction is a minimal reproducible example of the bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
