Skip to content
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

Cannot read properties of undefined (reading 'ReactCurrentDispatcher') #427

Closed
rogervila89 opened this issue Dec 4, 2024 · 3 comments
Closed

Comments

@rogervila89
Copy link

When I use Single-SPA to perform a POC with a root and a React project following the CLI, it fails to initialize the React project, and I get the following error:
"Cannot read properties of undefined (reading 'ReactCurrentDispatcher')"

@laoriy
Copy link

laoriy commented Dec 8, 2024

When I use Single-SPA to perform a POC with a root and a React project following the CLI, it fails to initialize the React project, and I get the following error: "Cannot read properties of undefined (reading 'ReactCurrentDispatcher')"

have you fixed it now ?

@rogervila89
Copy link
Author

Finally, the solution applied to avoid version issues in React has been to use SystemJS for module loading instead of Import Map Injector, which is pre-installed by Single-SPA when using its CLI to create applications. I’m still eager to make it work with the Import Map Injector using the CLI, but I haven’t been able to find a solution for that.

@joeldenning
Copy link
Member

There have been several fixes to create-single-spa that likely resolved this - see #428. I tested locally today with [email protected] and it worked

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

3 participants