8000 module federation bug with host in React 19 and remote in React 18 · Issue #19563 · webpack/webpack · GitHub
[go: up one dir, main page]

Skip to content

module federation bug with host in React 19 and remote in React 18 #19563

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
JugalJoshi8 opened this issue May 26, 2025 · 1 comment
Open

Comments

@JugalJoshi8
Copy link
JugalJoshi8 commented May 26, 2025

Bug report

What is the current behavior?

When using module federation plugin, if host is using React 19 and remote is using React 18, host fails to load with below error in console:

react-jsx-runtime.development.js:328 Uncaught TypeError: Cannot read properties of undefined (reading 'ReactCurrentDispatcher')
at eval (react-jsx-runtime.development.js:328:51)
at eval (react-jsx-runtime.development.js:1332:5)
at ./node_modules/react/cjs/react-jsx-runtime.development.js (vendors-node_modules_react_jsx-runtime_js.js:18:1)
at webpack_require (remoteEntry.js:104:41)
at eval (jsx-runtime.js:5:20)
at ./node_modules/react/jsx-runtime.js (vendors-node_modules_react_jsx-runtime_js.js:28:1)
at webpack_require (remoteEntry.js:104:41)
at eval (App.js:5:75)
at ./src/App.js (src_App_js.js:18:1)
at webpack_require (remoteEntry.js:104:41)

Image

If the current behavior is a bug, please provide the steps to reproduce.

  1. Clone the repository https://github.com/JugalJoshi8/module-federation-react
  2. Run npm install to install the dependencies
  3. Run npm run start and go to localhost:3000

What is the expected behavior?
Host application should load correctly

Other relevant information:
webpack version: 5.99.9
Node.js version: 20.12.2
Operating System: windows 11
Additional tools:

@dharmvr1
Copy link

can i do this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0