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
Hello dear devs!
I was planning to do it this way:
I have a host application modern.js
And there are some microfronts built on rsbuild.
And I wanted to connect them to each other.
Here is my config for rsbuild (just standard as from documentation + module federation)
[ Module Federation Dev Server ] Error [ Federation Runtime ]: [ Federation Runtime ]: The attribute remoteEntry of tasks must not be undefined.
at Object.error (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/share.cjs.js:25:1)
at assignRemoteInfo (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:747:1)
at Array.afterResolve (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:766:1)
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at RemoteHandler.getRemoteModuleAndOptions (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:1723:1)
at initRemoteModule (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:1378:1)
at async Promise.all (index 0)
at /modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:1251:1
at async Promise.all (index 0)
at SharedHandler.loadShare (/modernjs-rsbuuld-modulefederation/app/node_modules/@module-federation/runtime/dist/index.cjs.js:1250:1)
[ Module Federation Dev Server ] Error Process(54791) unhandledRejection, mf server will exit...
Process finished with exit code 1
BTW, it would be cool to have more examples of how to use module federation. Because so far it works like a black box, many things are not understood:(
Let's say if I want to combine several applications:
Host: Modern.js
Remotes: Rspack, Webpack, Vite, etc.
I would also like examples with different api services: rest (tanstack react query/redux rtk), apollo graphql.
Thanks:)
Version
Details
Hello dear devs!
I was planning to do it this way:
I have a host application modern.js
And there are some microfronts built on rsbuild.
And I wanted to connect them to each other.
Here is my config for rsbuild (just standard as from documentation + module federation)
rsbuild.config.ts
And installed basic modern.js and configured module federation from documentation
configs:
modern.config.ts:
module-federation.config.ts:
Reproduce link
https://github.com/VictorPulzz/modernjs-rsbuuld-modulefederation
Reproduce Steps
The text was updated successfully, but these errors were encountered: