You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**When updating registered remote wuth new version with force option, throwing the below error.**
react-dom.development.js:26951 Uncaught TypeError: Cannot delete property 'app1' of #<Window>
at FederationHost.removeRemote (index.cjs.js:1619:1)
at FederationHost.registerRemote (index.cjs.js:1664:1)
at index.cjs.js:1673:1
at Array.forEach (<anonymous>)
at FederationHost.registerRemotes (index.cjs.js:1672:1)
at registerRemotes (index.cjs.js:1783:1)
at RemotePage (remote-page.tsx:26:1)
at renderWithHooks (react-dom.development.js:15486:1)
at updateFunctionComponent (react-dom.development.js:19617:1)
at beginWork (react-dom.development.js:21640:1)
Reproduction
no reproduction
Used Package Manager
pnpm
System Info
Using RsBuild with below config.
import { defineConfig } from '@rsbuild/core';
import { pluginReact } from '@rsbuild/plugin-react';
import { ModuleFederationPlugin } from '@module-federation/enhanced/rspack';export default defineConfig({
server: {
port: 3000,
},
tools: {
rspack: (config, { appendPlugins }) => {
appendPlugins([
new ModuleFederationPlugin({
name: 'hostapp',
remotes: {
remote1: 'remote1@http://localhost:3001/mf-manifest.json',
},
shared: ['react', 'react-dom'],
}),
]);
},
},
plugins: [pluginReact()],
});
Usecase:
Once host app loaded the remote app, we may required to re-register/override the remote entry, when new version deployed(remote app). what is the way to update manifest URL.
In Host app remote1 page, i am trying to registerremote.
got warning as [ Federation Runtime ]:The remote "remote1" is already registered. If you want to merge the remote, you can set "force: true".
when register with force option, exception occured.
Uncaught TypeError: Cannot delete property 'remote1' of #.
Describe the bug
tools used:
Rsbuils, React, typescript, pnpm
refered react-manifest-example example.
registerRemotes(
[
{
name: "app1",
entry:
http://localhost:3002/mf-manifest.json?v=${version}
,},
],
{ force: true }
);
Reproduction
no reproduction
Used Package Manager
pnpm
System Info
Validations
The text was updated successfully, but these errors were encountered: