#any support for module federation in app router?

1 messages · Page 1 of 1 (latest)

glad widget
#

any support for module federation in app router coming? without that cannot truly implement micro frontend.

tawny bridgeBOT
#

Hi @glad widget. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

Based on the provided knowledge sources, there is limited information specifically addressing module federation support in Next.js App Router. However, I can provide some insights based on the available information:

The issue discussed in Github Issue #60407 (https://github.com/vercel/next.js/issues/60407) suggests that there are some challenges with module federation in both Next.js 13 and 14, particularly when using the App Router. The issue describes problems with using useContext in a federated module, which causes errors in both page and app router setups.

While this doesn't directly confirm or deny support for module federation in the App Router, it indicates that there are ongoing issues and limitations when trying to implement module federation with Next.js, especially in the context of the App Router.

It's important to note that the issue was closed, but it's not clear if a solution was provided or if it's still an ongoing problem. The knowledge sources don't provide information about future plans for module federation support in the App Router.

Given the limited information available, I cannot confidently state whether full support for module federation in the App Router is coming or not. If this feature is crucial for your micro frontend implementation, you may want to:

  1. Check the official Next.js documentation for the most up-to-date information.
  2. Monitor the Next.js GitHub repository for any updates or discussions on this topic.
  3. Consider reaching out to the Next.js team directly for more specific information about their roadmap for module federation support in the App Router.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: