Questions tagged [nextjs-mf]

6 questions
1
vote
0 answers

NextJS Module federation - getServerSideProps is not executed in [...slug].js file

// ./shared.js const React = require('react'); const createMatcher = require('feather-route-matcher'); const { injectScript } = require('@module-federation/nextjs-mf/utils'); import dynamic from 'next/dynamic'; const remoteVars =…
1
vote
0 answers

How to implement Module Federation in Next.js &

everybody I'm working with nextjs and now I'm starting to use microfrontends I'm trying to implement a repository container for this I use @module-federation/nextjs-mf I want to put localization and fonts in the repository container to begin…
0
votes
0 answers

Module Federation: Can a NextJS Remote work in a CRA Host?

Would it possible to use a NextJS remote in a Create React App (CRA) host app? On the NextJS Remote, I am using @module-federation/nextjs-mf to expose a component which relies on NextJS's useRouter. On the CRA Host, I am using craco-mf to connect…
0
votes
1 answer

How to render Angular Module in nextjs (React App)

I am working to integrate Micro Front End, part of the integration we have to include angular app in nextjs, , So We have injected the angular remoteEntry.js , like below injectScript({ global: 'app', url:…
0
votes
1 answer

lib folder is not present inside the '@module-federation/nextjs-mf?

Hi i am trying to make use of micro front end in nextjs , So as mentioned in this npm pkg link , lib folder is not present inside the @module-federation package tried below way to import the include-defaults import…
-1
votes
1 answer

Next.js + Module Federation + Turbo repo throws build error: Self-reference dependency has unused export name: This should not happen

I am trying to implement module federation in next.js using Turborepo with 2 nex.js apps This is how the architecture is set up currently: Turbo repo as the mono repo. /apps contains 2 Next.js apps: searchapp: which is a next.js app that exposes a…