core icon indicating copy to clipboard operation
core copied to clipboard

misleading error message when remoteEntry.files is empty

Open kbrooks opened this issue 1 year ago • 0 comments

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

kbrooks avatar Jul 17 '24 17:07 kbrooks