Closed papgeorge21 closed 2 years ago
From what you described, I am pretty sure that it is not a bug in MUI. If you could post a link to your repository, I am happy to take a look.
Please provide a CodeSandbox (https://material-ui.com/r/issue-template-latest), a link to a repository on GitHub, or provide a minimal code example that reproduces the problem.
I'll close it, fixed the issue.
Could you share what fixed your issue?
I believe adding this to the root folder did the trick:
`
Duplicates
Latest version
Current behavior 😯
As per the migration from v4 to v5 guideline suggests, I placed ThemeProvider at the root of my app. I am NOT using any theme I'm getting the following errors:
MUI: The styles argument provided is invalid. You are providing a function without a theme in the context. One of the parent elements needs to use a ThemeProvider.
theme.spacing is not a function
Expected behavior 🤔
The app should render normally
Steps to reproduce 🕹
Here's an app skeleton similar to mine. I'm using React Router and Context, if it makes any difference: