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

[MaterialUI] Cannot read properties of null (reading 'useContext') #596

Open
nahimr opened this issue Apr 18, 2024 · 0 comments
Open

[MaterialUI] Cannot read properties of null (reading 'useContext') #596

nahimr opened this issue Apr 18, 2024 · 0 comments

Comments

@nahimr
Copy link

nahimr commented Apr 18, 2024

When calling useTheme hook from @mui/material, this throws an error.

image

Shared dependencies

On host side :

image

On remote side :

image

Versions

  • vite-plugin-federation: 1.3.5
  • vite: 5.2.8
  • @emotion/react: 11.11.4
  • @emotion/styled: 11.11.5
  • @mui/material: 5.15.15

Steps to reproduce

What is Expected?

It's expected to use correctly the hook useContext that its called by useTheme.

What is actually happening?

It's missing shared useContext reference of React.

Related to #595.

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

1 participant