I am trying to use Material-UI's theme.spacing function in a React application but the spacing function is not recognized.
The Javascript error message is: TypeError: theme.spacing is not a function
I am unsure if this is a bug or I have something wrong with the frameworks versions being installed.
paddingTop: theme.spacing(20)
These are the frameworks versions being installed, according to the package-lock.json file:
Well, it turns out this is a bug after all, caused by request #14099.
A fix is on the way now, so I am closing this question.