79270632

Date: 2024-12-11 06:20:37
Score: 1
Natty:
Report link

The host in my application is v12 and the remote is v15, I faced the same issue, but instead of loading the module using loadRemoteModule. I am loading it as a web component.

        {
            matcher: startsWith('data-visualization'), // route
            component: WebComponentWrapper, // wrapper for the component
            data: {
                remoteEntry: 'http://localhost:4300/remoteEntry.js',
                remoteName: 'v17',
                exposedModule: './web-components',
                elementName: 'superset-frontend'
              } as WebComponentWrapperOptions
        },

You have to import them all from the @angular-architects/module-federation-tools

import { startsWith, WebComponentWrapper, WebComponentWrapperOptions } from '@angular-architects/module-federation-tools';

You can take the help from this blog. blog link

Reasons:
  • Blacklisted phrase (1): this blog
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Ayu