core
core copied to clipboard
misleading error message when remoteEntry.files is empty
Describe the bug
When building my mfe I ran into the following error
HookWebpackError: [ Module Federation Manifest Plugin ]: remoteEntry chunk should not have multiple files!, current files:
at makeWebpackError (/Users/kyle.brooks/.../node_modules/.pnpm/[email protected]/node_modules/webpack/lib/HookWebpackError.js:48:9)
The message is misleading because files is actually an empty set.
Reproduction
i already fixed the problem in a pr
Used Package Manager
pnpm
System Info
System:
OS: macOS 14.5
CPU: (10) arm64 Apple M1 Max
Memory: 4.62 GB / 64.00 GB
Shell: 5.9 - /bin/zsh
Binaries:
Node: 20.11.0 - ~/.nvm/versions/node/v20.11.0/bin/node
npm: 10.2.4 - ~/.nvm/versions/node/v20.11.0/bin/npm
pnpm: 8.15.6 - ~/.nvm/versions/node/v20.11.0/bin/pnpm
Browsers:
Chrome: 126.0.6478.128
Safari: 17.5
Validations
- [X] Read the docs.
- [X] Read the common issues list.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Module federation issue and not a framework-specific issue.
- [X] The provided reproduction is a minimal reproducible example of the bug.