module-federation / core

Module Federation is a concept that allows developers to share code and resources across multiple JavaScript applications
https://module-federation.io/
MIT License
1.44k stars 214 forks source link

FederationBoundary component not exported from package #3017

Open jparnone opened 11 hours ago

jparnone commented 11 hours ago

Describe the bug

Trying to import the FederationBoundary component fails because it is not exported:

Module not found: Error: Package path ./src/utils/react is not exported from package ..../node_modules/@module-federation/utilities (see exports field in ..../node_modules/@module-federation/utilities/package.json)

Likely related to: https://github.com/module-federation/core/issues/2021

Reproduction

N/A just got it trying to import the component per READ ME

Used Package Manager

npm

System Info

System:
    OS: macOS 14.3
    CPU: (16) arm64 Apple M3 Max
    Memory: 497.38 MB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - /usr/local/bin/node
    npm: 10.2.3 - /usr/local/bin/npm
  Browsers:
    Chrome: 129.0.6668.70
    Safari: 17.3

Validations

ScriptedAlchemy commented 7 hours ago

You should not use module-federation/utilities package. Use the federation runtime instead. https://module-federation.io/