0

Can an application act as a shell and remote and call it's own mfe?

part of webpack.config

const federatedModules = withModuleFederationPlugin({
    name: 'mfe',
    exposes: {
        './DownloadModule': './src/app/feature-modules/download/download.module.ts',
    },
    remotes:{
        "mfe": "https://local.app/remoteEntry.js"
    },
    shared: {
        ...shareAll({ singleton: true, strictVersion: true, requiredVersion: 'auto', eager: true })
    }
});

When I try this I get error: Uncaught TypeError: Cannot read properties of undefined (reading 'call') from bootstrap.ts

LinkedListT
  • 681
  • 8
  • 24

0 Answers0