Micro frontend architecture using federated Remix apps
With this, we have a better approach for structuring microfrontends with Remix. Have any studies been conducted on this? How can we improve the developer experience (DX) for integration with Remix to achieve a higher level of server-side rendering and routing?
https://github.com/remix-run/remix/discussions/1989 https://github.com/jrestall/remix-federation
I'm not aware of any tests in this direction. Would you like to give it a try?
I want to build Remix demo with @module-federation/vite. My repo, https://github.com/devmax214/remix-microfrontend-demo And it does not work with the remote component. https://github.com/devmax214/remix-microfrontend-demo/blob/master/host/app/routes/_index.tsx#L16, no response from here.
Please help me if anyone has a solution or how I can dubug deeper.
@zhangHongEn @gioboa @ScriptedAlchemy trying to pull some attention here. We tried a few things to make it work, but we were not sure what we were missing.
I hope this can work 🙏 Waiting for the release version to integrate with the remix together! Especially the react-router v7. Thanks
Hello.
Im testing with 2 simple react router 7 framework apps, one of them exporting a simple component, and the other importing that remote component.
When i run the remote app it gives the following error:
The configuration is the following:
After i resolve this issue, i will try to import the federated component into the host app.
Can you help me?
Thanks.
Can you help me?
I'll try to create a POC with Remix
I did this example
It's not working yet because this import from the host is never resolved ( no errors ) 😮💨
const Remote = lazy(
async () => import('remote/remote-app'),
);
Any help is more than welcome.
Any news on react router v7 (framework apps)?
I have a rsbuild plugin in the works. But have been on holiday. Will wrap it up this month.
@ScriptedAlchemy any update?
Just need to fix a few last issues with ssr support for federation. It's currently under the rspack-contrib repo if you wanna follow along.
Thanks, i looked at https://github.com/web-infra-dev/rsbuild/commit/9b95f5937ead0006cd0638a46e588ad14015073e how this applies to vite plugin?
Thanks, i looked at https://github.com/web-infra-dev/rsbuild/commit/9b95f5937ead0006cd0638a46e588ad14015073e how this applies to vite plugin?
It's moved to the rspack-contrib not the rsbuild repo directly.
It doesn't apply to vite but I'm pretty sure it's not possible to support ssr and federation with vite. So I'm providing you an option that's possible.
As there's been no activity for 30 days, this issue has been flagged as stale. If you'd like it to remain open, please add a comment within the next 7 days. Thank you.