josem
josem

Reputation: 173

Unable to use Typography - TypeError: Cannot read property '@global' of undefined

I'm trying react-admin 2.4.4 and that whenever I include a Typography component the following error is displayed:

TypeError: Cannot read property '@global' of undefined... in WithStyles(Typography)

It seems the problem is related to unexpected structure on theme styles but can't understand why. I saw some references pointing that it could be due to different material-ui/core dependencies mixed in the same project.

Any ideas about how to troubleshoot this issue?

Upvotes: 2

Views: 1638

Answers (1)

josem
josem

Reputation: 173

I solved this by making sure there's no mixed versions of material-ui dependencies in the project.

Upvotes: 3

Related Questions