Thank you so much!. could you please give me an example about MF for Nextjs 14 ?
@ankitparmar14190Ай бұрын
Is this possible for the next 14?
@ThaiLofiVibesАй бұрын
I would say yes/no. The MF library seems only support Next.js (Page router) for now. you can use Next.Js 13+ with Page router version if you want to use MF lib.
@ankitparmar14190Ай бұрын
@ThaiLofiVibes mf lib is deprecated. Can we use webpack directly?
@ThaiLofiVibesАй бұрын
@ if you are using Nextjs i suggest to checkout "rewrite" in next.config.js it behave like what micro frontend does
@ankitparmar14190Ай бұрын
@ThaiLofiVibes will it work with angular end? My host app is angular and remote app is nextjs.
@thelostworld.thegioibilangquen9 ай бұрын
I tried, developed, and built very quickly but Rspack has quite a few bugs and issues. Do you think Rspack is suitable for large-scale mf projects in the future?
@russellcanfield9 ай бұрын
I think it is, its a newer tool so it will have some issues but it will be the best place to be long term - especially if you are using module federation. I'm curious what type of bugs have you encountered? Have you opened issues in the rspack repo?
@thelostworld.thegioibilangquen9 ай бұрын
@@russellcanfield I follow Rspack Discord channel every day. I tried both Webpack and Rspack. Quite difficult to choose ones :))
@ardithastopalli27198 ай бұрын
great content !!! do you think it is possible to dynamically load the remotes ?
@russellcanfield8 ай бұрын
It definitely is, you just need a URL for federated types in your configuration but you can dynamically load them still
@ardithastopalli27198 ай бұрын
@@russellcanfield thank you for the quick reply. I put together a working example using nx and rspack, dynamic remotes and finally got the HRM working. The only thing not working is the type generation. I am not sure where to put the URL for the type generation since now that I am loading the remotes dynamically? If you could explain the topic of dynamic remotes and HRM in a microfe world would be so much appreciated. Again thank you for all the help