nextjs-mf always throws error "Error: Can not get 'react-dom'" #2091
Unanswered
luckyluggi
asked this question in
Q&A
Replies: 1 comment
-
Hi @luckyluggi, I am facing the same issue. Did you ever find a solution to this? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello. Could anyone help me out here.
When i perform the following steps:
npx create-next-app@latest
with all default settingscd my-app
npm i webpack
npm i @module-federation/nextjs-mf
I get the following project.json file:
now i can run the app via
npm run dev
and it runs.Then i add this content to the
next.config.mjs
file (i tried with and without any remotes):I get the following error:
Error: Can not get 'react-dom'
What am i doing wrong?
react-dom should be automatically handled by nextjs-mf as it says here
FYI: i have to write
set NEXT_PRIVATE_LOCAL_WEBPACK=true &&
because i am on Windows.Beta Was this translation helpful? Give feedback.
All reactions