How to configure Module Federation in React Router with Vite? #13444
Unanswered
neetigyachahar
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am typically trying to set up a React Router (framework mode) project with Module Federation enabled.
You can explore a demo repo here: https://github.com/neetigyachahar/react-router-vite-module-federation
There are two apps,
host
andremote-1
in it. First, I'm trying to configureremote-1
app work properly.Here is a snippet of my
vite.config.ts
file in theremote-1
app.The build is successfully created but if I run it, I get the following error:
Also, for the host app, I am getting the error as mentioned in this repo: https://github.com/Hunga1/module-federation-react-router-framework-reprex/tree/main
What could be the possible fixes for these?
Beta Was this translation helpful? Give feedback.
All reactions